IAIDocProcessingService.AskAIAsync(Presentation, String, RagOptions, CancellationToken) Method
Returns a response to a custom question about the presentation content.
Namespace: DevExpress.AIIntegration.Docs
Assembly: DevExpress.AIIntegration.Docs.v25.2.dll
NuGet Package: DevExpress.AIIntegration.Docs
Declaration
Task<string> AskAIAsync(
Presentation presentation,
string question,
RagOptions options,
CancellationToken cancellationToken = default(CancellationToken)
)
Parameters
| Name | Type | Description |
|---|---|---|
| presentation | Presentation | The |
| question | String | The question about the presentation content. |
| options | RagOptions | An object that contains retrieval-augmented generation (RAG) options. |
Optional Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| cancellationToken | CancellationToken | null | The token that cancels the task. |
Returns
| Type | Description |
|---|---|
| Task<String> | The response that contains an AI-generated answer. |
See Also