---
Product: Aspose.PDF
Platform: go
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/go/chatcopilot
---

# ChatCopilot

## Overview

`ChatCopilot` is a type in Aspose.PDF FOSS for Go.

ChatCopilot answers questions about a document, keeping conversation history.

This type declares 3 methods for ChatCopilot objects in Go programs.
Available methods include: `Ask`, `History`, `Reset`.
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. |

## See Also

- [Aspose.PDF — Enterprise API Reference](https://reference.aspose.com/pdf/)