SlidesAIAgent constructor
Contents
[
Hide
]init
Initializes a new instance of SlidesAIAgent using the built-in
AsposeAIWebClient with its default configuration. The client connects to
Aspose’s own LLM and requires no additional configuration.
To use a different AI client, use the Aspose.Slides.AI.SlidesAIAgent.#ctor(Aspose.Slides.A overload instead.
def __init__(self):
...
init
Initializes a new instance of SlidesAIAgent with a custom AI client.
Use this overload to specify the AI provider, supply your own LLM, or customize the
connection (for example, by providing your own HttpClient).
Any implementation of IAIWebClient can be used, including:
To use the built-in [`AsposeAIWebClient`](/slides/python-net/aspose.slides.ai/asposeaiwebclient) with its default configuration, use the **SlidesAIAgent.#ctor** overload instead.
def __init__(self, ai_client):
...
| Parameter | Type | Description |
|---|---|---|
| ai_client | IAIWebClient | AI client instance. Any implementation of IAIWebClient can be used. |
Exceptions
| Exception | Description |
|---|---|
| RuntimeError(Proxy error(ArgumentNullException)) | AI client instance is not provided. |
See Also
- class
AsposeAIWebClient - class
IAIWebClient - class
OpenAICompatibleWebClient - class
OpenAIWebClient - class
SlidesAIAgent - module
aspose.slides.ai - library
Aspose.Slides