Module cost
Modules§
Structs§
- Agent
Cost Stats - Statistics for a specific agent alias.
- Cost
Record - Cost
Summary - Cost summary for reporting.
- Cost
Tracker - Model
Stats - Statistics for a specific model.
- Subtree
Spend - Process-local subtree accounting for one hop of a delegation chain.
- Token
Usage
Enums§
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.