AgentUsage class final

One model usage report, in the shape a pi_ai-style runtime emits (issue #2256).

Constructors

AgentUsage({int inputTokens = 0, int outputTokens = 0, double cost = 0.0})
Creates a usage report.
const

Properties

cost → double
The monetary cost of the call.
final
hashCode → int
The hash code for this object.
no setterinherited
inputTokens → int
The prompt tokens the call consumed.
final
outputTokens → int
The completion tokens the call produced.
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
toString() → String
A string representation of this object.
inherited

Operators

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