Skip to main content

Module run_stats

Module run_stats 

Source
Expand description

Per-run tallies behind /stats: model requests and tool calls.

Counters only move at points the turn loop already visits (a finished stream, a finished tool batch), so they add no work to a turn. Like crate::SessionCost they live in memory: a resumed session counts from zero, while prompts, edits and todos are read from what is stored.

Structs§

ModelTally
Requests and tokens for one provider/model.
RunStats
What this run asked of models and tools.
ToolTally
Calls and failures for one tool name.

Functions§

stats_report
Plain-text /stats body for the TUI and the line REPL.