pub struct DedupStats {
pub duplicate_lines_collapsed: u64,
pub naive_known_tokens: u64,
pub requests_with_thinking: u64,
pub requests_with_encrypted_thinking: u64,
pub thinking_chars_total: u64,
}Expand description
Proof-of-work counters from the dedup pass.
Fields§
§duplicate_lines_collapsed: u64Extra assistant lines merged away (lines − requests). If this is N > 0, a naive parser would have counted N lines’ usage twice.
naive_known_tokens: u64What naive per-line summation would have reported (for the overcount stat shown to the user).
requests_with_thinking: u64Requests that carried thinking blocks (measurable or encrypted).
requests_with_encrypted_thinking: u64Requests whose thinking was present but entirely encrypted/unmeasurable, so the thinking share of their output can’t be measured (absence ≠ zero, §8.5).
thinking_chars_total: u64Total measured visible thinking chars — the basis for an estimated
thinking-token attribution. Already included in output; never added to
billable totals.
Implementations§
Source§impl DedupStats
impl DedupStats
Sourcepub fn thinking_tokens_estimate(&self) -> u64
pub fn thinking_tokens_estimate(&self) -> u64
Estimated thinking tokens from measured visible thinking chars — a LOWER
BOUND: extended-thinking text tokenizes denser than the chars/4 rule of
thumb (~1–3 chars/token observed), and encrypted thinking contributes 0
measurable chars though it still costs output tokens. These tokens are
already inside output and are never billed again.
Trait Implementations§
Source§impl Clone for DedupStats
impl Clone for DedupStats
Source§fn clone(&self) -> DedupStats
fn clone(&self) -> DedupStats
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more