pub enum AutoCompactTokenLimitScope {
Total,
BodyAfterPrefix,
}Expand description
Selects which part of the active context is charged against model_auto_compact_token_limit.
JSON schema
{
"description": "Selects which part of the active context is charged against `model_auto_compact_token_limit`.",
"oneOf": [
{
"description": "Count the full active context against the limit.",
"type": "string",
"enum": [
"total"
]
},
{
"description": "Count sampled output and later growth after the carried window prefix.",
"type": "string",
"enum": [
"body_after_prefix"
]
}
]
}Variants§
Total
Count the full active context against the limit.
BodyAfterPrefix
Count sampled output and later growth after the carried window prefix.
Trait Implementations§
Source§impl Clone for AutoCompactTokenLimitScope
impl Clone for AutoCompactTokenLimitScope
Source§fn clone(&self) -> AutoCompactTokenLimitScope
fn clone(&self) -> AutoCompactTokenLimitScope
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 AutoCompactTokenLimitScope
impl Debug for AutoCompactTokenLimitScope
Source§impl<'de> Deserialize<'de> for AutoCompactTokenLimitScope
impl<'de> Deserialize<'de> for AutoCompactTokenLimitScope
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 AutoCompactTokenLimitScope
impl Display for AutoCompactTokenLimitScope
Source§impl FromStr for AutoCompactTokenLimitScope
impl FromStr for AutoCompactTokenLimitScope
Source§impl Hash for AutoCompactTokenLimitScope
impl Hash for AutoCompactTokenLimitScope
Source§impl Ord for AutoCompactTokenLimitScope
impl Ord for AutoCompactTokenLimitScope
Source§fn cmp(&self, other: &AutoCompactTokenLimitScope) -> Ordering
fn cmp(&self, other: &AutoCompactTokenLimitScope) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AutoCompactTokenLimitScope
impl PartialEq for AutoCompactTokenLimitScope
Source§fn eq(&self, other: &AutoCompactTokenLimitScope) -> bool
fn eq(&self, other: &AutoCompactTokenLimitScope) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AutoCompactTokenLimitScope
impl PartialOrd for AutoCompactTokenLimitScope
Source§impl TryFrom<&String> for AutoCompactTokenLimitScope
impl TryFrom<&String> for AutoCompactTokenLimitScope
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for AutoCompactTokenLimitScope
impl TryFrom<&str> for AutoCompactTokenLimitScope
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for AutoCompactTokenLimitScope
impl TryFrom<String> for AutoCompactTokenLimitScope
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl Copy for AutoCompactTokenLimitScope
impl Eq for AutoCompactTokenLimitScope
impl StructuralPartialEq for AutoCompactTokenLimitScope
Auto Trait Implementations§
impl Freeze for AutoCompactTokenLimitScope
impl RefUnwindSafe for AutoCompactTokenLimitScope
impl Send for AutoCompactTokenLimitScope
impl Sync for AutoCompactTokenLimitScope
impl Unpin for AutoCompactTokenLimitScope
impl UnsafeUnpin for AutoCompactTokenLimitScope
impl UnwindSafe for AutoCompactTokenLimitScope
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.