pub enum TruncationReason {
Complete,
TokenBudget,
MaxDepth,
}Expand description
Reason for stopping context collection.
Variants§
Complete
All reachable nodes within max_depth were included.
TokenBudget
Stopped because token budget was reached.
MaxDepth
Stopped because max depth was reached.
Trait Implementations§
Source§impl Clone for TruncationReason
impl Clone for TruncationReason
Source§fn clone(&self) -> TruncationReason
fn clone(&self) -> TruncationReason
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 TruncationReason
impl Debug for TruncationReason
Source§impl<'de> Deserialize<'de> for TruncationReason
impl<'de> Deserialize<'de> for TruncationReason
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
Source§impl Display for TruncationReason
impl Display for TruncationReason
Source§impl PartialEq for TruncationReason
impl PartialEq for TruncationReason
Source§impl Serialize for TruncationReason
impl Serialize for TruncationReason
impl Copy for TruncationReason
impl Eq for TruncationReason
impl StructuralPartialEq for TruncationReason
Auto Trait Implementations§
impl Freeze for TruncationReason
impl RefUnwindSafe for TruncationReason
impl Send for TruncationReason
impl Sync for TruncationReason
impl Unpin for TruncationReason
impl UnwindSafe for TruncationReason
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.