Autobot::Logging::TokenTracker
Tracks cumulative token usage across LLM calls.
Thread-safe via Mutex. Call record after each LLM response
and summary to get a human-readable overview.
Constants
Log = ::Log.for("tokens")
Instance methods
Record token usage from a single LLM response.
reset
Sourcetotal_completion_tokens
Sourcetotal_prompt_tokens
Sourcetotal_requests
Source