pub struct ContextStats {
pub total_contexts: usize,
pub total_tokens: usize,
pub total_messages: usize,
pub cache_size: usize,
}Expand description
Statistics about managed contexts
Fields§
§total_contexts: usizeTotal number of contexts
total_tokens: usizeTotal tokens across all contexts
total_messages: usizeTotal messages across all contexts
cache_size: usizeNumber of contexts in cache
Trait Implementations§
Source§impl Clone for ContextStats
impl Clone for ContextStats
Source§fn clone(&self) -> ContextStats
fn clone(&self) -> ContextStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ContextStats
impl RefUnwindSafe for ContextStats
impl Send for ContextStats
impl Sync for ContextStats
impl Unpin for ContextStats
impl UnwindSafe for ContextStats
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