UsageDetails class

Provides usage details about a request/response.

Constructors

UsageDetails({int? inputTokenCount, int? outputTokenCount, int? totalTokenCount, int? cachedInputTokenCount, int? reasoningTokenCount, int? inputAudioTokenCount, int? inputTextTokenCount, int? outputAudioTokenCount, int? outputTextTokenCount, Map<String, int>? additionalCounts, AdditionalPropertiesDictionary? additionalProperties})
Creates a new UsageDetails.

Properties

additionalCounts ↔ Map<String, int>?
Additional usage counts not covered by the standard properties.
getter/setter pair
additionalProperties ↔ AdditionalPropertiesDictionary?
Additional properties.
getter/setter pair
cachedInputTokenCount ↔ int?
The number of input tokens that were served from cache.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
inputAudioTokenCount ↔ int?
The number of audio input tokens used.
getter/setter pair
inputTextTokenCount ↔ int?
The number of text input tokens used.
getter/setter pair
inputTokenCount ↔ int?
The number of input tokens used.
getter/setter pair
outputAudioTokenCount ↔ int?
The number of audio output tokens used.
getter/setter pair
outputTextTokenCount ↔ int?
The number of text output tokens used.
getter/setter pair
outputTokenCount ↔ int?
The number of output tokens generated.
getter/setter pair
reasoningTokenCount ↔ int?
The number of tokens used for reasoning.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
totalTokenCount ↔ int?
The total number of tokens used.
getter/setter pair

Methods

add(UsageDetails other) → void
Adds the usage details from other into this instance.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited