pub struct PruneOptions {
pub scope: Option<String>,
pub min_uses: u32,
pub max_ratio: f32,
pub apply: bool,
}Expand description
MP-6: bulk prune of memories whose outcome-attribution data says they are net-negative. Selection rules: use_count >= min_uses usefulness_score / use_count <= max_ratio invalidated_at IS NULL scope filter optional
apply = false is the default at the CLI layer so the user sees
what would be touched before any writes. apply = true invalidates
each match via the existing invalidate_memory path so every
removal still emits a canonical memory.invalidated event.
Fields§
§scope: Option<String>§min_uses: u32§max_ratio: f32§apply: boolTrait Implementations§
Source§impl Clone for PruneOptions
impl Clone for PruneOptions
Source§fn clone(&self) -> PruneOptions
fn clone(&self) -> PruneOptions
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 PruneOptions
impl Debug for PruneOptions
Auto Trait Implementations§
impl Freeze for PruneOptions
impl RefUnwindSafe for PruneOptions
impl Send for PruneOptions
impl Sync for PruneOptions
impl Unpin for PruneOptions
impl UnsafeUnpin for PruneOptions
impl UnwindSafe for PruneOptions
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