Expand description
In-memory token cost tracker. Purely observational — no enforcement.
Structs§
- Cost
Tracker - Accumulates token usage and cost across calls. Thread-safe.
- Price
- Price table entry. Units: micro-cents per token, where 1 cent = 10 000 micro-cents. Stored this way so per-token values are integers even for cheap models.