Share via


UsageDetails Class

Definition

Provides usage details about a request/response.

public ref class UsageDetails
public class UsageDetails
type UsageDetails = class
Public Class UsageDetails
Inheritance
UsageDetails

Constructors

Name Description
UsageDetails()

Properties

Name Description
AdditionalCounts

Gets or sets a dictionary of additional usage counts.

CachedInputTokenCount

Gets or sets the number of input tokens that were read from a cache.

InputAudioTokenCount

Gets or sets the number of audio input tokens used.

InputTextTokenCount

Gets or sets the number of text input tokens used.

InputTokenCount

Gets or sets the number of tokens in the input.

OutputAudioTokenCount

Gets or sets the number of audio output tokens used.

OutputTextTokenCount

Gets or sets the number of text output tokens used.

OutputTokenCount

Gets or sets the number of tokens in the output.

ReasoningTokenCount

Gets or sets the number of "reasoning" / "thinking" tokens used internally by the model.

TotalTokenCount

Gets or sets the total number of tokens used to produce the response.

Methods

Name Description
Add(UsageDetails)

Adds usage data from another UsageDetails into this instance.

Applies to