CostSummary class

Cost summary for AI operations

Constructors

CostSummary({required double totalCost, double? costPerInputToken, double? costPerOutputToken, int? inputTokens, int? outputTokens, String? provider, String? model})
Creates a CostSummary
const

Properties

costPerInputToken → double?
Cost per input token
final
costPerOutputToken → double?
Cost per output token
final
hashCode → int
The hash code for this object.
no setterinherited
inputTokens → int?
Number of input tokens
final
model → String?
Model used
final
outputTokens → int?
Number of output tokens
final
provider → String?
Provider used
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
totalCost → double
Total cost in USD
final

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