BudgetCost class

Budget cost estimate for an operation.

Constructors

BudgetCost({int estimatedTokens = 0, int steps = 1, int llmCalls = 0, int mcpCalls = 0, Duration? estimatedDuration})
const
BudgetCost.llm({int estimatedTokens = 1000})
Cost for an LLM call.
factory
BudgetCost.mcp()
Cost for an MCP tool call.
factory
BudgetCost.step()
Cost for a simple step.
factory

Properties

estimatedDuration → Duration?
Estimated duration of the operation.
final
estimatedTokens → int
final
hashCode → int
The hash code for this object.
no setterinherited
llmCalls → int
final
mcpCalls → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
steps → int
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