Usage class
Token-usage breakdown returned by the API.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- inputTokens → int?
-
Prompt tokens counted on input.
final
- outputTokens → int?
-
Tokens generated in the output.
final
-
outputTokensBreakdown
→ Map<
String, int> ? -
Optional fine-grained breakdown by role or stream.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalTokens → int?
-
Sum of all token counts.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serialise to JSON.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited