Class
AIRequestInfo

Represents the details of an AI request: the origin of the request (RAG or Client), the estimated token count, and whether RAG was used to answer the query.

Definition

Namespace:Telerik.Reporting.Services.Engine

Assembly:Telerik.Reporting.dll

Syntax:

cs-api-definition
public class AIRequestInfo

Inheritance: objectAIRequestInfo

Properties

EstimatedTokensCount

Gets the estimated number of tokens based on the current input or configuration.

Declaration

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

Property Value

int

Origin

Identifies the origin of the request. 'RAG' identifies the request being sent to determine whether the original query is suitable to be passed through the internal RAG algorithm. 'Client' identifies the request being sent from the client, e.g. Report Viewer.

Declaration

cs-api-definition
public AIRequestInfo.AIRequestOrigin Origin { get; }

Property Value

AIRequestInfo.AIRequestOrigin

RAGOptimization

Determines whether RAG was being used to answer the request.

Declaration

cs-api-definition
public AIRequestInfo.RAGOptimizationState RAGOptimization { get; }

Property Value

AIRequestInfo.RAGOptimizationState