pub struct ContextWindowStats {
pub avg_saturation_pct: f64,
pub high_load_count: usize,
pub peak_saturation_pct: f64,
pub trend_slope: f64,
pub sessions_until_high: Option<usize>,
}Expand description
Context window saturation statistics
Fields§
§avg_saturation_pct: f64Average saturation percentage across last N sessions (0.0-100.0)
high_load_count: usizeCount of sessions exceeding 85% saturation (high-load)
peak_saturation_pct: f64Peak saturation percentage (max session, for future use)
trend_slope: f64Linear regression slope over recent sessions (percentage points per session). Positive = trending higher, negative = declining.
sessions_until_high: Option<usize>Predicted sessions until avg saturation crosses 85%.
None if slope is flat/negative or already above 85%.
Trait Implementations§
Source§impl Clone for ContextWindowStats
impl Clone for ContextWindowStats
Source§fn clone(&self) -> ContextWindowStats
fn clone(&self) -> ContextWindowStats
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 ContextWindowStats
impl Debug for ContextWindowStats
Source§impl Default for ContextWindowStats
impl Default for ContextWindowStats
Source§fn default() -> ContextWindowStats
fn default() -> ContextWindowStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContextWindowStats
impl RefUnwindSafe for ContextWindowStats
impl Send for ContextWindowStats
impl Sync for ContextWindowStats
impl Unpin for ContextWindowStats
impl UnsafeUnpin for ContextWindowStats
impl UnwindSafe for ContextWindowStats
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