pub struct ForgetOptions {
pub dry_run: bool,
pub usefulness_floor: f32,
pub min_age_days: u32,
pub protect_use_count: u32,
}Expand description
Options for the forget_brain policy run.
All thresholds come from [lifecycle] config; callers may also override
them for testing.
Fields§
§dry_run: boolDo not write anything — just report what WOULD be forgotten.
usefulness_floor: f32Archive memories whose usefulness score (per-use ratio) is ≤ this.
Default from config: forget_usefulness_floor.
min_age_days: u32Only consider memories whose age (from last_useful_at or
created_at) is older than this many days.
Default from config: forget_min_age_days.
protect_use_count: u32Memories with use_count >= this are PROTECTED (evergreen).
Default from config: forget_protect_use_count.
Trait Implementations§
Source§impl Clone for ForgetOptions
impl Clone for ForgetOptions
Source§fn clone(&self) -> ForgetOptions
fn clone(&self) -> ForgetOptions
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 ForgetOptions
impl Debug for ForgetOptions
Auto Trait Implementations§
impl Freeze for ForgetOptions
impl RefUnwindSafe for ForgetOptions
impl Send for ForgetOptions
impl Sync for ForgetOptions
impl Unpin for ForgetOptions
impl UnsafeUnpin for ForgetOptions
impl UnwindSafe for ForgetOptions
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