pub struct EvictionConfig {
pub max_age_turns: u64,
pub eviction_ratio: f64,
pub min_keep: usize,
}Expand description
Configuration for context eviction.
Fields§
§max_age_turns: u64Maximum age (in turns) before content is eligible for eviction. Default: 30.
eviction_ratio: f64Fraction of context to evict when triggered (0.0–1.0). Default: 0.3 (evict the oldest 30%).
min_keep: usizeMinimum number of items to always keep (most recent). Default: 5.
Trait Implementations§
Source§impl Clone for EvictionConfig
impl Clone for EvictionConfig
Source§fn clone(&self) -> EvictionConfig
fn clone(&self) -> EvictionConfig
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 EvictionConfig
impl Debug for EvictionConfig
Auto Trait Implementations§
impl Freeze for EvictionConfig
impl RefUnwindSafe for EvictionConfig
impl Send for EvictionConfig
impl Sync for EvictionConfig
impl Unpin for EvictionConfig
impl UnsafeUnpin for EvictionConfig
impl UnwindSafe for EvictionConfig
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