pub struct CompactionConfig {
pub auto_compact_threshold: u64,
pub recent_turn_budget: usize,
pub max_summary_tokens: u32,
pub min_turns_between_compactions: u32,
}Expand description
Configuration for the default compactor implementation.
Fields§
§auto_compact_threshold: u64Compaction triggers when last_input_tokens >= auto_compact_threshold.
recent_turn_budget: usizeNumber of recent complete turns to retain after compaction.
max_summary_tokens: u32Maximum tokens for the compaction summary LLM response.
min_turns_between_compactions: u32Minimum session-scoped LLM boundaries between consecutive compactions.
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 · 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 From<CompactionRuntimeConfig> for CompactionConfig
impl From<CompactionRuntimeConfig> for CompactionConfig
Source§fn from(value: CompactionRuntimeConfig) -> Self
fn from(value: CompactionRuntimeConfig) -> Self
Converts to this type from the input type.
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