ClassSummarizationProcessor
Generates a concise summary of a document’s text (such as PDF) using full-context prompting up to the configured input token limit.
Definition
Namespace:Telerik.Windows.Documents.AIConnector
Assembly:Telerik.Windows.Documents.AIConnector.dll
Syntax:
public sealed class SummarizationProcessor : AIProcessorBase, IDisposable
Inheritance: objectAIProcessorBaseSummarizationProcessor
Implements:
Inherited Members
Constructors
SummarizationProcessor(IChatClient, SummarizationProcessorSettings)
Initializes a new instance of the SummarizationProcessor class.
Declaration
public SummarizationProcessor(IChatClient chatClient, SummarizationProcessorSettings settings)
Parameters
chatClient
IChatClient
The chat client used for communication with the AI service.
settings
SummarizationProcessorSettings
The settings of the processor.
Properties
Settings
Gets the settings that control summarization behavior, including token limits and prompt customization.
Declaration
public SummarizationProcessorSettings Settings { get; }
Property Value
Methods
Summarize(SimpleTextDocument)
Produces a summary of the provided document’s text (such as PDF) using full-context AI prompting, up to the configured input token limit.
Declaration
public Task<string> Summarize(SimpleTextDocument document)
Parameters
document
The document to be summarized.
Returns
A task that represents the asynchronous operation. The task result contains the summarized text.
Exceptions
Thrown when the summarization operation is cancelled.
Events
SummaryResourcesCalculated
Raised when the number of tokens and calls required for summarization have been calculated; provides resource usage details and allows cancellation.
Declaration
public event EventHandler<SummaryResourcesCalculatedEventArgs> SummaryResourcesCalculated
Event Value