pub enum ContextWindowPhase {
Stable,
ReassemblyDue,
Compacting,
Exhausted,
}Expand description
Lifecycle phase of the assembled context window.
Variants§
Stable
Usage is below the compaction threshold.
ReassemblyDue
The window should be rebuilt before the next request.
A staged system-block rewrite is waiting for the next compaction to fold it into the cacheable prefix.
Compacting
A compaction is in flight alongside the run.
Exhausted
Usage reached the pause threshold and the run must wait for a handoff.
Trait Implementations§
Source§impl Clone for ContextWindowPhase
impl Clone for ContextWindowPhase
impl Copy for ContextWindowPhase
Source§impl Debug for ContextWindowPhase
impl Debug for ContextWindowPhase
Source§impl<'de> Deserialize<'de> for ContextWindowPhase
impl<'de> Deserialize<'de> for ContextWindowPhase
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
impl Eq for ContextWindowPhase
Source§impl PartialEq for ContextWindowPhase
impl PartialEq for ContextWindowPhase
Source§impl Serialize for ContextWindowPhase
impl Serialize for ContextWindowPhase
impl StructuralPartialEq for ContextWindowPhase
Auto Trait Implementations§
impl Forget for ContextWindowPhase
impl Freeze for ContextWindowPhase
impl Move for ContextWindowPhase
impl RefUnwindSafe for ContextWindowPhase
impl Send for ContextWindowPhase
impl Sync for ContextWindowPhase
impl Unpin for ContextWindowPhase
impl UnsafeUnpin for ContextWindowPhase
impl UnwindSafe for ContextWindowPhase
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.