Skip to main content

cost_tracker

Function cost_tracker 

Source
pub fn cost_tracker() -> &'static CostTracker
Expand description

Get the global CostTracker.

The cost tracker uses a minimal ModelRegistry for token cost estimation. Record per-agent token usage after each LLM call.