Back to Devexpress

IAIDocProcessingService.AskAIAsync(Presentation, String, CancellationToken) Method

officefileapi-devexpress-dot-aiintegration-dot-docs-dot-iaidocprocessingservice-dot-askaiasync-x28-devexpress-dot-docs-dot-presentation-dot-presentation-system-dot-string-system-dot-threading-dot-cancellationtoken-x29.md

latest2.3 KB
Original Source

IAIDocProcessingService.AskAIAsync(Presentation, String, 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

csharp
Task<string> AskAIAsync(
    Presentation presentation,
    string question,
    CancellationToken cancellationToken = default(CancellationToken)
)
vb
Function AskAIAsync(
    presentation As Presentation,
    question As String,
    cancellationToken As CancellationToken = Nothing
) As Task(Of String)

Parameters

NameTypeDescription
presentationPresentation

The Presentation instance that contains the content to be questioned.

| | question | String |

The question about the presentation content.

|

Optional Parameters

NameTypeDefaultDescription
cancellationTokenCancellationTokennull

The token that cancels the task.

|

Returns

TypeDescription
Task<String>

The response that contains an AI-generated answer.

|

See Also

IAIDocProcessingService Interface

IAIDocProcessingService Members

DevExpress.AIIntegration.Docs Namespace