Skip to main content

codetether_agent/telemetry/tokens/
mod.rs

1//! # Token telemetry
2//!
3//! Everything related to LLM token accounting.
4//!
5//! | File | Responsibility |
6//! |---|---|
7//! | [`totals`]   | [`TokenTotals`] — simple input/output pair |
8//! | [`counts`]   | [`TokenCounts`] — wire-format input/output pair |
9//! | [`snapshot`] | [`TokenUsageSnapshot`] + [`GlobalTokenSnapshot`] |
10//! | [`counter`]  | [`AtomicTokenCounter`] — the lock-light global counter |
11
12pub mod counter;
13pub mod counts;
14pub mod snapshot;
15pub mod totals;
16
17pub use counter::AtomicTokenCounter;
18pub use counts::TokenCounts;
19pub use snapshot::{GlobalTokenSnapshot, TokenUsageSnapshot};
20pub use totals::TokenTotals;