GeneratePresentation
GeneratePresentation(string, PresentationContentAmountType)
Generates a presentation instance from a text description. Provide a topic, ideas, quotes, or text snippets in the required language.
public IPresentation GeneratePresentation(string description,
PresentationContentAmountType presentationContentAmount)
| Parameter | Type | Description |
|---|---|---|
| description | String | The topic, ideas, quotes, or text snippets. |
| presentationContentAmount | PresentationContentAmountType | The amount of content in the resulting presentation. |
Exceptions
| exception | condition |
|---|---|
| ArgumentException | AI chat instruction can’t be null or empty. |
Remarks
The example below uses the default AsposeAIWebClient, which is created by the parameterless SlidesAIAgent constructor and connects to Aspose’s own LLM. To use a different AI provider, supply your own LLM, or customize the connection (for example, by providing your own HttpClient), pass an IAIWebClient implementation to the SlidesAIAgent constructor. Available implementations include:
See Also
- interface IPresentation
- enum PresentationContentAmountType
- class SlidesAIAgent
- namespace Aspose.Slides.AI
- assembly Aspose.Slides
GeneratePresentation(string, PresentationContentAmountType, IPresentation)
Generates a presentation instance from a text description. Provide a topic, ideas, quotes, or text snippets in the required language.
public IPresentation GeneratePresentation(string description,
PresentationContentAmountType presentationContentAmount, IPresentation presentationTemplate)
| Parameter | Type | Description |
|---|---|---|
| description | String | The topic, ideas, quotes, or text snippets. |
| presentationContentAmount | PresentationContentAmountType | The amount of content in the resulting presentation. |
| presentationTemplate | IPresentation | A presentation to use as a template for layout and design, replacing the default template. |
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | Presentation template is not provided. |
| ArgumentException | AI chat instruction can’t be null or empty. |
Remarks
The example below uses the default AsposeAIWebClient, which is created by the parameterless SlidesAIAgent constructor and connects to Aspose’s own LLM. To use a different AI provider, supply your own LLM, or customize the connection (for example, by providing your own HttpClient), pass an IAIWebClient implementation to the SlidesAIAgent constructor. Available implementations include:
See Also
- interface IPresentation
- enum PresentationContentAmountType
- class SlidesAIAgent
- namespace Aspose.Slides.AI
- assembly Aspose.Slides