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

# AIClient

## Overview

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

AIClient is the contract every copilot consumes: one call, one chat completion.

This type declares 1 method for AIClient objects in Go programs.
Available methods include: `Complete`.
Public members are accessible to any Go application after installing the Aspose.PDF FOSS for Go package.

## Methods

| Signature | Description |
|-----------|-------------|
| `Complete(ctx: context.Context, req: CompletionRequest)` → `(*CompletionResponse, error)` | ` performs a single chat completion call and returns a `*CompletionResponse` or an error |

## See Also

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