SlidesAIAgent
SlidesAIAgent class
Provides AI-powered features for processing presentations.
SlidesAIAgent
Name | Description |
---|---|
SlidesAIAgent(OpenAIWebClient) | SlidesAIAgent function |
Parameters:
Name | Type | Description |
---|---|---|
aiClient | OpenAIWebClient | AI client instance |
Returns: SlidesAIAgent
Error
Error | Condition |
---|---|
IllegalArgumentException | if AI client is not provided |
generatePresentation
Name | Description |
---|---|
generatePresentation (String, int) | Generates a presentation from a text description |
Parameters:
Name | Type | Description |
---|---|---|
description | String | The topic, ideas, quotes or text snippets |
presentationContentAmount | int | Amount of content in resulting presentation |
Returns: Presentation
Error
Error | Condition |
---|---|
IllegalArgumentException | if description is empty |
generatePresentation
Name | Description |
---|---|
generatePresentation (String, int, Presentation) | Generates a presentation using custom template |
Parameters:
Name | Type | Description |
---|---|---|
description | String | The topic, ideas, quotes or text snippets |
presentationContentAmount | int | Amount of content in resulting presentation |
presentationTemplate | Presentation | Presentation template for layout and design |
Returns: Presentation
Error
Error | Condition |
---|---|
IllegalArgumentException | if parameters are invalid |
translate
Name | Description |
---|---|
translate (Presentation, String) | Translates a presentation to the specified language using AI |
Parameters:
Name | Type | Description |
---|---|---|
presentation | Presentation | Target presentation |
language | String | Target language |
Error
Error | Condition |
---|---|
IllegalArgumentException | if parameters are invalid |