pub struct CompactionConfig {
pub enabled: bool,
pub token_threshold: usize,
pub model: String,
pub cache_summary: bool,
pub auto_floor_tokens: usize,
}Expand description
Configuration for conversation compaction behavior.
Fields§
§enabled: bool§token_threshold: usize§model: String§cache_summary: bool§auto_floor_tokens: usizeHard floor — should_compact returns false when total session
tokens fall below this number, regardless of enabled or
token_threshold.
Trait Implementations§
Source§impl Clone for CompactionConfig
impl Clone for CompactionConfig
Source§fn clone(&self) -> CompactionConfig
fn clone(&self) -> CompactionConfig
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 CompactionConfig
impl Debug for CompactionConfig
Source§impl Default for CompactionConfig
impl Default for CompactionConfig
Source§impl PartialEq for CompactionConfig
impl PartialEq for CompactionConfig
Source§fn eq(&self, other: &CompactionConfig) -> bool
fn eq(&self, other: &CompactionConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CompactionConfig
Auto Trait Implementations§
impl Freeze for CompactionConfig
impl RefUnwindSafe for CompactionConfig
impl Send for CompactionConfig
impl Sync for CompactionConfig
impl Unpin for CompactionConfig
impl UnsafeUnpin for CompactionConfig
impl UnwindSafe for CompactionConfig
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