pub struct ForgettingConfig {
pub enabled: bool,
pub decay_rate: f32,
pub forgetting_floor: f32,
pub sweep_interval_secs: u64,
pub sweep_batch_size: usize,
pub replay_window_hours: u32,
pub replay_min_access_count: u32,
pub protect_recent_hours: u32,
pub protect_min_access_count: u32,
}Expand description
Runtime config for the forgetting sweep (#2397).
Fields§
§enabled: boolEnable the forgetting sweep.
decay_rate: f32Per-sweep decay rate applied to importance scores. Range: (0.0, 1.0).
forgetting_floor: f32Importance floor below which memories are pruned. Range: [0.0, 1.0].
sweep_interval_secs: u64How often the forgetting sweep runs, in seconds.
sweep_batch_size: usizeMaximum messages to process per sweep.
replay_window_hours: u32Hours: messages accessed within this window get replay protection.
replay_min_access_count: u32Messages with access_count >= this get replay protection.
protect_recent_hours: u32Hours: never prune messages accessed within this window.
protect_min_access_count: u32Never prune messages with access_count >= this.
Trait Implementations§
Source§impl Clone for ForgettingConfig
impl Clone for ForgettingConfig
Source§fn clone(&self) -> ForgettingConfig
fn clone(&self) -> ForgettingConfig
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 ForgettingConfig
impl Debug for ForgettingConfig
Auto Trait Implementations§
impl Freeze for ForgettingConfig
impl RefUnwindSafe for ForgettingConfig
impl Send for ForgettingConfig
impl Sync for ForgettingConfig
impl Unpin for ForgettingConfig
impl UnsafeUnpin for ForgettingConfig
impl UnwindSafe for ForgettingConfig
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