pub struct ContextWindowState {
pub execution_id: ExecutionId,
pub segments: Vec<ContextSegment>,
pub budget: ContextBudget,
pub compaction_history: Vec<CompactionResult>,
pub compaction_count: u32,
pub total_tokens_saved: usize,
pub health: BudgetHealth,
pub updated_at: DateTime<Utc>,
}Expand description
Context window state
Matches contextWindowStateSchema in @enact/schemas
Fields§
§execution_id: ExecutionIdExecution ID
segments: Vec<ContextSegment>All segments currently in context
budget: ContextBudgetCurrent budget state
compaction_history: Vec<CompactionResult>Compaction history
compaction_count: u32Number of compactions performed
total_tokens_saved: usizeTotal tokens saved by compaction
health: BudgetHealthCurrent health status
updated_at: DateTime<Utc>Last updated timestamp
Trait Implementations§
Source§impl Clone for ContextWindowState
impl Clone for ContextWindowState
Source§fn clone(&self) -> ContextWindowState
fn clone(&self) -> ContextWindowState
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 ContextWindowState
impl Debug for ContextWindowState
Source§impl<'de> Deserialize<'de> for ContextWindowState
impl<'de> Deserialize<'de> for ContextWindowState
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 ContextWindowState
impl RefUnwindSafe for ContextWindowState
impl Send for ContextWindowState
impl Sync for ContextWindowState
impl Unpin for ContextWindowState
impl UnsafeUnpin for ContextWindowState
impl UnwindSafe for ContextWindowState
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