pub struct TokenBucketOverview {Show 16 fields
pub token_savings_bucket: String,
pub provider: String,
pub model: String,
pub tokenizer_backend: String,
pub accuracy: String,
pub baseline_kind: String,
pub confidence: String,
pub calls: usize,
pub estimated_without_projectatlas: usize,
pub estimated_with_projectatlas: usize,
pub estimated_saved: isize,
pub savings_rate: Option<f64>,
pub accounting_layer: String,
pub estimate_method: String,
pub denominator_kind: String,
pub dedupe_scope: String,
}Expand description
Aggregated token savings for one bucket and counting mode.
Fields§
§token_savings_bucket: StringSavings bucket.
provider: StringProvider used for token counting.
model: StringModel used for token counting.
tokenizer_backend: StringTokenizer or API backend used for token counting.
accuracy: StringAccuracy level for the token count.
baseline_kind: StringBaseline scenario used for the without-ProjectAtlas estimate.
confidence: StringConfidence level for the baseline scenario.
calls: usizeNumber of tracked calls in this bucket.
estimated_without_projectatlas: usizeTotal baseline estimate.
estimated_with_projectatlas: usizeTotal ProjectAtlas estimate.
estimated_saved: isizeTotal saved tokens.
savings_rate: Option<f64>Signed savings ratio, or None when the baseline estimate is zero.
accounting_layer: StringAccounting layer used to separate measured deltas from modeled avoidance.
estimate_method: StringToken estimate method used for this bucket.
denominator_kind: StringDenominator represented by the baseline estimate.
dedupe_scope: StringDedupe scope used by events in this bucket.
Implementations§
Source§impl TokenBucketOverview
impl TokenBucketOverview
Sourcepub fn from_totals(
token_savings_bucket: String,
provider: String,
model: String,
tokenizer_backend: String,
accuracy: String,
baseline_kind: String,
confidence: String,
accounting_layer: String,
estimate_method: String,
denominator_kind: String,
dedupe_scope: String,
calls: u128,
without: u128,
with: u128,
) -> Self
pub fn from_totals( token_savings_bucket: String, provider: String, model: String, tokenizer_backend: String, accuracy: String, baseline_kind: String, confidence: String, accounting_layer: String, estimate_method: String, denominator_kind: String, dedupe_scope: String, calls: u128, without: u128, with: u128, ) -> Self
Build a bucket overview from aggregate heuristic token totals.
Trait Implementations§
Source§impl Clone for TokenBucketOverview
impl Clone for TokenBucketOverview
Source§fn clone(&self) -> TokenBucketOverview
fn clone(&self) -> TokenBucketOverview
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more