codetether_agent/swarm/validation/token_status.rs
1/// Estimated token usage for a swarm execution.
2#[derive(Debug, Clone, Default)]
3pub struct TokenEstimate {
4 /// Estimated prompt tokens.
5 pub prompt_tokens: usize,
6 /// Estimated completion tokens.
7 pub completion_tokens: usize,
8 /// Estimated total tokens.
9 pub total_tokens: usize,
10 /// Whether the estimate exceeds the model context window.
11 pub exceeds_limit: bool,
12 /// Context window of the selected model.
13 pub context_window: usize,
14}