Skip to main content

Module cost

Module cost 

Modules§

tracker
types

Structs§

AgentCostStats
Statistics for a specific agent alias.
CostRecord
CostSummary
Cost summary for reporting.
CostTracker
ModelStats
Statistics for a specific model.
SubtreeSpend
Process-local subtree accounting for one hop of a delegation chain.
TokenUsage

Enums§

BudgetCheck
UsagePeriod

Constants§

MAX_SANE_USD_RATE
Upper bound for any configured or discovered USD cost rate.

Functions§

is_sane_usd_rate
Whether a USD rate is finite, non-negative, and within the shared safety bound. Zero remains valid so an explicitly free resource is distinguishable from unavailable pricing.