pub struct EpisodicCompactionConfig {
pub trigger_context_tokens: Option<usize>,
pub trigger_unfinished_turns: usize,
pub trigger_age_days: u64,
pub trigger_age_turn_count: usize,
}Expand description
Default policy for long-lived, append-only conversation histories.
The context-pressure threshold is model-specific and therefore disabled by default. The unfinished-turn and age-based triggers provide safe fallback bounds for conversations whose provider budget is not known at the store.
Fields§
§trigger_context_tokens: Option<usize>Trigger once the caller’s provider-view token estimate reaches this
threshold. None disables this model-aware trigger.
trigger_unfinished_turns: usizeTrigger after this many user messages followed the most recent clean run completion in the current episode.
trigger_age_days: u64Require this conversation age, in whole days, for the long-tail trigger.
trigger_age_turn_count: usizeRequire this many total user messages for the long-tail trigger.
Trait Implementations§
Source§impl Clone for EpisodicCompactionConfig
impl Clone for EpisodicCompactionConfig
Source§fn clone(&self) -> EpisodicCompactionConfig
fn clone(&self) -> EpisodicCompactionConfig
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 moreimpl Copy for EpisodicCompactionConfig
Source§impl Debug for EpisodicCompactionConfig
impl Debug for EpisodicCompactionConfig
Source§impl Default for EpisodicCompactionConfig
impl Default for EpisodicCompactionConfig
impl Eq for EpisodicCompactionConfig
Source§impl PartialEq for EpisodicCompactionConfig
impl PartialEq for EpisodicCompactionConfig
impl StructuralPartialEq for EpisodicCompactionConfig
Auto Trait Implementations§
impl Freeze for EpisodicCompactionConfig
impl RefUnwindSafe for EpisodicCompactionConfig
impl Send for EpisodicCompactionConfig
impl Sync for EpisodicCompactionConfig
impl Unpin for EpisodicCompactionConfig
impl UnsafeUnpin for EpisodicCompactionConfig
impl UnwindSafe for EpisodicCompactionConfig
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