Sprog

AzureAIProjectsModelFactory.AgentInsightTokenUsage Method

Definition

Token usage for an Agent Insights run.

public static Azure.AI.Projects.AgentInsightTokenUsage AgentInsightTokenUsage(int inputTokens = 0, int outputTokens = 0, int? cachedTokens = default, int totalTokens = 0);
static member AgentInsightTokenUsage : int * int * Nullable<int> * int -> Azure.AI.Projects.AgentInsightTokenUsage
Public Shared Function AgentInsightTokenUsage (Optional inputTokens As Integer = 0, Optional outputTokens As Integer = 0, Optional cachedTokens As Nullable(Of Integer) = Nothing, Optional totalTokens As Integer = 0) As AgentInsightTokenUsage

Parameters

inputTokens
Int32

The number of input tokens used by the run.

outputTokens
Int32

The number of output tokens used by the run.

cachedTokens
Nullable<Int32>

The number of input tokens served from cache.

totalTokens
Int32

The total number of tokens used by the run.

Returns

A new AgentInsightTokenUsage instance for mocking.

Applies to