ChatCopilot
Overview
ChatCopilot is a type in Aspose.PDF FOSS for Go.
ChatCopilot answers questions about a document, keeping conversation history.
This type provides 3 methods for working with ChatCopilot objects in Go programs.
Available methods include: Ask, History, Reset.
All public members are accessible to any Go application after installing the Aspose.PDF FOSS for Go package.
Methods
| Signature | Description |
|---|---|
Ask(ctx: context.Context, question: string) → (string, error) | Ask sends a question and returns the model’s answer, appending both to the conversation history so follow-up questions have context. |
History() → []Message | History returns a copy of the conversation so far (alternating user and assistant turns). |
Reset() | Reset clears the conversation history. |