pub struct ContextWindowMetrics {
pub usage_fraction: f32,
pub selected_model_context_window: Option<u32>,
pub fast_model_context_window: Option<u32>,
pub effective_context_window: usize,
pub system_block_count: usize,
pub reminder_count: usize,
pub recent_message_count: usize,
pub recent_system_message_count: usize,
pub has_handoff: bool,
}Expand description
Metrics describing the currently assembled context window.
Fields§
§usage_fraction: f32Estimated fraction of the effective context window currently in use.
selected_model_context_window: Option<u32>Context window of the currently selected reasoning model.
fast_model_context_window: Option<u32>Context window of the fast model used for compaction.
effective_context_window: usizeEffective window used for budgeting (minimum of selected and fast).
system_block_count: usizeNumber of persistent system blocks in the structured context.
reminder_count: usizeNumber of ephemeral reminders currently assembled.
recent_message_count: usizeNumber of recent conversation messages.
recent_system_message_count: usizeNumber of recent system messages that can be pruned by reassembly.
has_handoff: boolWhether a persisted handoff document is present.
Trait Implementations§
Source§impl Clone for ContextWindowMetrics
impl Clone for ContextWindowMetrics
Source§impl Debug for ContextWindowMetrics
impl Debug for ContextWindowMetrics
Source§impl<'de> Deserialize<'de> for ContextWindowMetrics
impl<'de> Deserialize<'de> for ContextWindowMetrics
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 ContextWindowMetrics
impl RefUnwindSafe for ContextWindowMetrics
impl Send for ContextWindowMetrics
impl Sync for ContextWindowMetrics
impl Unpin for ContextWindowMetrics
impl UnsafeUnpin for ContextWindowMetrics
impl UnwindSafe for ContextWindowMetrics
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more