Back to Devexpress

IAIDocProcessingService.AskAIAsync(RichEditDocumentServer, String, CancellationToken) Method

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

latest2.4 KB
Original Source

IAIDocProcessingService.AskAIAsync(RichEditDocumentServer, String, CancellationToken) Method

Returns a response to a custom question about the document content.

Namespace : DevExpress.AIIntegration.Docs

Assembly : DevExpress.AIIntegration.Docs.v25.2.dll

NuGet Package : DevExpress.AIIntegration.Docs

Declaration

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

Parameters

NameTypeDescription
wordProcessorRichEditDocumentServer

The RichEditDocumentServer instance that contains the content to be questioned.

| | question | String |

The question about the document content.

|

Optional Parameters

NameTypeDefaultDescription
cancellationTokenCancellationTokennull

The token that cancels the task.

|

Returns

TypeDescription
Task<String>

The response that contains AI-generated answer.

|

See Also

IAIDocProcessingService Interface

IAIDocProcessingService Members

DevExpress.AIIntegration.Docs Namespace