pub struct ContextStatistics {
pub total_tokens: usize,
pub total_blocks: usize,
pub blocks_by_reason: HashMap<String, usize>,
pub average_relevance: f32,
pub depth_distribution: HashMap<usize, usize>,
pub compressed_count: usize,
}Expand description
Statistics about the context window
Fields§
§total_tokens: usize§total_blocks: usize§blocks_by_reason: HashMap<String, usize>§average_relevance: f32§depth_distribution: HashMap<usize, usize>§compressed_count: usizeTrait Implementations§
Source§impl Clone for ContextStatistics
impl Clone for ContextStatistics
Source§fn clone(&self) -> ContextStatistics
fn clone(&self) -> ContextStatistics
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 moreSource§impl Debug for ContextStatistics
impl Debug for ContextStatistics
Source§impl Default for ContextStatistics
impl Default for ContextStatistics
Source§fn default() -> ContextStatistics
fn default() -> ContextStatistics
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContextStatistics
impl<'de> Deserialize<'de> for ContextStatistics
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 ContextStatistics
impl RefUnwindSafe for ContextStatistics
impl Send for ContextStatistics
impl Sync for ContextStatistics
impl Unpin for ContextStatistics
impl UnsafeUnpin for ContextStatistics
impl UnwindSafe for ContextStatistics
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