UsageDetails class
Provides usage details about a request/response.
Constructors
-
UsageDetails({int? inputTokenCount, int? outputTokenCount, int? totalTokenCount, int? cachedInputTokenCount, int? reasoningTokenCount, 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
- inputTokenCount ↔ int?
-
The number of input 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
otherinto 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