DecisionUsage class final

Usage accounting parsed from the response's usage block (present on success responses; every field optional because providers may omit).

Constructors

DecisionUsage({int? inputTokens, int? outputTokens, double? cost})
const

Properties

cost → double?
Cost in USD, when reported.
final
hashCode → int
The hash code for this object.
no setterinherited
inputTokens → int?
Tokens billed for the state + questions.
final
outputTokens → int?
Tokens billed for the answers.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
The wire form; absent fields stay absent.
toString() → String
A string representation of this object.
inherited

Operators

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