pub struct TokenBreakdown {Show 16 fields
pub counter_id: String,
pub tokenizer_revision: String,
pub candidate_tokens: u32,
pub selected_before_dedup_tokens: u32,
pub delivered_tokens: u32,
pub budget_omitted_tokens: u32,
pub dedup_saved_tokens: u32,
pub rendering_overhead_tokens: u32,
pub estimated_tokens: u32,
pub actual_provider_tokens: Option<u32>,
pub estimation_error: Option<i32>,
pub wire_tokens: u32,
pub schema_tokens: u32,
pub instruction_tokens: u32,
pub evidence_tokens: u32,
pub output_tokens: u32,
}Fields§
§counter_id: String§tokenizer_revision: String§candidate_tokens: u32Every candidate, before budget or dedup.
selected_before_dedup_tokens: u32Included items counted on their original bodies.
delivered_tokens: u32What the packet actually contains after dedup.
budget_omitted_tokens: u32Whole items dropped to fit the budget. Not a saving.
dedup_saved_tokens: u32Repeated lines removed from included items. This is a saving.
rendering_overhead_tokens: u32Headers and wrappers around the evidence bodies.
estimated_tokens: u32Same unit as Self::candidate_tokens; kept so a ledger can say
“estimated” without knowing which compile field to read.
actual_provider_tokens: Option<u32>Filled when an executor later reports vendor usage.
estimation_error: Option<i32>actual - estimated once both exist. Positive means we under-counted.
wire_tokens: u32Tokens on the wire after compile (packet body).
schema_tokens: u32Tool/JSON schema tokens counted separately from evidence.
instruction_tokens: u32Instruction / wrapper tokens.
evidence_tokens: u32Evidence bodies as selected, before wrappers.
output_tokens: u32Reserved output budget. Compile does not consume this.