IAIDocProcessingService.SummarizeAsync(DocumentRange, SummarizationMode, CancellationToken) Method
Generates a brief summary of a document content.
Namespace: DevExpress.AIIntegration.Docs
Assembly: DevExpress.AIIntegration.Docs.v25.2.dll
NuGet Package: DevExpress.AIIntegration.Docs
Declaration
Task<string> SummarizeAsync(
DocumentRange documentRange,
SummarizationMode mode = SummarizationMode.Abstractive,
CancellationToken cancellationToken = default(CancellationToken)
)
Parameters
| Name | Type | Description |
|---|---|---|
| documentRange | DocumentRange | The document range which text should be summarized. |
Optional Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| mode | SummarizationMode | Abstractive | An enumeration value that indicates summarization mode. |
| cancellationToken | CancellationToken | null | The token that cancels the task. |
Returns
| Type | Description |
|---|---|
| Task<String> | The response that contains AI-generated summary. |
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SummarizeAsync(DocumentRange, SummarizationMode, CancellationToken) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.