SlidesAIAgent constructor

Contents
[ ]

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:

def __init__(self, ai_client):
    ...
ParameterTypeDescription
ai_clientIAIWebClientAI client instance. Any implementation of IAIWebClient can be used.

Exceptions

ExceptionDescription
RuntimeError(Proxy error(ArgumentNullException))AI client instance is not provided.

See Also