Skip to main content

Module token_usage

Module token_usage 

Source
Expand description

Per-model token accounting carried by RUN_FINISHED and RUN_ERROR.

Structs§

TokenUsage
A numeric-only token usage summary for one (provider, model) pair.

Functions§

aggregate_token_usage
Sums per-call TokenUsage entries into one entry per (provider, model) pair, in order of first appearance.