AzureAIProjectsModelFactory.AgentInsightTokenUsage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
- totalTokens
- Int32
The total number of tokens used by the run.
Returns
A new AgentInsightTokenUsage instance for mocking.