pub enum CompactReason {
Proactive,
Reactive,
}Expand description
Why the context-window compaction seam fired.
Variants§
Proactive
The next-request token estimate crossed the model’s compaction threshold before sending; the warning fired ahead of any failure.
Reactive
The provider itself reported a context-window overflow, either as
a ProviderError::ContextWindowExceeded or via
ResponseStatus::ContextWindowExceeded on a successful reply.
Trait Implementations§
Source§impl Clone for CompactReason
impl Clone for CompactReason
Source§fn clone(&self) -> CompactReason
fn clone(&self) -> CompactReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CompactReason
impl Debug for CompactReason
Source§impl PartialEq for CompactReason
impl PartialEq for CompactReason
Source§fn eq(&self, other: &CompactReason) -> bool
fn eq(&self, other: &CompactReason) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CompactReason
impl Eq for CompactReason
impl StructuralPartialEq for CompactReason
Auto Trait Implementations§
impl Freeze for CompactReason
impl RefUnwindSafe for CompactReason
impl Send for CompactReason
impl Sync for CompactReason
impl Unpin for CompactReason
impl UnsafeUnpin for CompactReason
impl UnwindSafe for CompactReason
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,
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.