pub enum CompactReason {
Asked {
focus: String,
},
Threshold,
Overflow,
}Expand description
Why a conversation is compacted.
Variants§
Asked
The user asked, with what to focus on, if anything.
Threshold
The next request would leave less than the reserve of the model’s window free.
Overflow
The model refused the request as too long.
Trait Implementations§
Source§impl Clone for CompactReason
impl Clone for CompactReason
Source§impl Debug for CompactReason
impl Debug for CompactReason
impl Eq for CompactReason
Source§impl PartialEq for CompactReason
impl PartialEq 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.