pub struct ContextCompactionConfig {
pub auto_compaction: bool,
pub trigger: ContextCompactionTrigger,
pub max_summary_bytes: usize,
pub keep_recent_tokens: u64,
}Fields§
§auto_compaction: bool§trigger: ContextCompactionTrigger§max_summary_bytes: usize§keep_recent_tokens: u64Recent-history tail token budget; zero disables retention. Runtime caps it to available space.
Trait Implementations§
Source§impl Clone for ContextCompactionConfig
impl Clone for ContextCompactionConfig
Source§fn clone(&self) -> ContextCompactionConfig
fn clone(&self) -> ContextCompactionConfig
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 ContextCompactionConfig
impl Debug for ContextCompactionConfig
Source§impl Default for ContextCompactionConfig
impl Default for ContextCompactionConfig
Source§impl<'de> Deserialize<'de> for ContextCompactionConfig
impl<'de> Deserialize<'de> for ContextCompactionConfig
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
Auto Trait Implementations§
impl Freeze for ContextCompactionConfig
impl RefUnwindSafe for ContextCompactionConfig
impl Send for ContextCompactionConfig
impl Sync for ContextCompactionConfig
impl Unpin for ContextCompactionConfig
impl UnsafeUnpin for ContextCompactionConfig
impl UnwindSafe for ContextCompactionConfig
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