Class
SummaryResourcesCalculatedEventArgs

Carries resource estimates for summarizing document text (such as PDF), including call count and token usage, and enables flow control.

Definition

Namespace:Telerik.Windows.Documents.AIConnector

Assembly:Telerik.Windows.Documents.AIConnector.dll

Syntax:

cs-api-definition
public class SummaryResourcesCalculatedEventArgs : EventArgs

Inheritance: objectEventArgsSummaryResourcesCalculatedEventArgs

Inherited Members EventArgs.Empty

Constructors

SummaryResourcesCalculatedEventArgs(int, int)

Creates event data with estimated calls and token counts for summarization over document text (such as PDF).

Declaration

cs-api-definition
public SummaryResourcesCalculatedEventArgs(int estimatedCallsRequired, int estimatedTokensRequired)

Parameters

estimatedCallsRequired

int

The estimated number of calls required.

estimatedTokensRequired

int

The estimated number of tokens required.

Properties

EstimatedCallsRequired

Gets the estimated number of model calls needed for summarization, impacting latency and cost.

Declaration

cs-api-definition
public int EstimatedCallsRequired { get; }

Property Value

int

EstimatedTokensRequired

Gets the estimated input token count for summarization, bounded by the model’s input token limit.

Declaration

cs-api-definition
public int EstimatedTokensRequired { get; }

Property Value

int

ShouldContinueExecution

Gets or sets whether summarization should proceed based on the resource estimates.

Declaration

cs-api-definition
public bool ShouldContinueExecution { get; set; }

Property Value

bool