Expand description
Token usage accounting and cost estimation for the Recursive TUI.
Contains UsageStats for per-session token accumulation, TurnState
for in-flight turn tracking, and helpers to detect the active model and
estimate dollar cost from token counts.
Structs§
- Turn
State - State of the currently in-flight turn (if any).
- Usage
Stats - Token usage and timing accumulated across the session.
Functions§
- detect_
model_ name - Return the model name to display in the status bar.
- estimate_
cost - Compute estimated cost in USD given accumulated tokens.
Delegates to
pricing_for()from the bundled provider catalog. ReturnsNonewhen the model has no pricing entry inproviders.toml.