Skip to main content
All docs
V25.2
  • 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

    Task<string> AskAIAsync(
        RichEditDocumentServer wordProcessor,
        string question,
        CancellationToken cancellationToken = default(CancellationToken)
    )

    Parameters

    Name Type Description
    wordProcessor RichEditDocumentServer

    The RichEditDocumentServer instance that contains the content to be questioned.

    question String

    The question about the document content.

    Optional Parameters

    Name Type Default Description
    cancellationToken CancellationToken null

    The token that cancels the task.

    Returns

    Type Description
    Task<String>

    The response that contains AI-generated answer.

    See Also