pub struct ContextTraceSummary {
pub total_tokens: usize,
pub max_tokens: usize,
pub budget_used_percent: f32,
pub iteration: usize,
pub event_counts: HashMap<String, usize>,
pub event_tokens: HashMap<String, usize>,
pub events_len: usize,
}Expand description
Summary statistics for a context trace.
Fields§
§total_tokens: usizeTotal tokens used.
max_tokens: usizeMaximum token budget.
budget_used_percent: f32Percentage of budget used.
iteration: usizeCurrent iteration number.
event_counts: HashMap<String, usize>Count of events by type.
event_tokens: HashMap<String, usize>Tokens by event type.
events_len: usizeTotal number of events.
Implementations§
Trait Implementations§
Source§impl Clone for ContextTraceSummary
impl Clone for ContextTraceSummary
Source§fn clone(&self) -> ContextTraceSummary
fn clone(&self) -> ContextTraceSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContextTraceSummary
impl Debug for ContextTraceSummary
Source§impl<'de> Deserialize<'de> for ContextTraceSummary
impl<'de> Deserialize<'de> for ContextTraceSummary
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ContextTraceSummary
impl RefUnwindSafe for ContextTraceSummary
impl Send for ContextTraceSummary
impl Sync for ContextTraceSummary
impl Unpin for ContextTraceSummary
impl UnsafeUnpin for ContextTraceSummary
impl UnwindSafe for ContextTraceSummary
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more