pub struct TopOptions {
pub scope: Option<String>,
pub min_uses: u32,
pub limit: u32,
}Expand description
MP-6: ranked list of memories sorted by the same usefulness ratio the
broker uses for retrieval scoring (usefulness_score / use_count).
Filters out invalidated rows and any memory with use_count < min_uses
(the small-sample guard; default 3 matches the broker’s
SMALL_SAMPLE_THRESHOLD). Optional scope filter narrows to a single
memory class. Lets the user see which memories are actually doing
work so they can prune the rest with memory prune.
Fields§
§scope: Option<String>§min_uses: u32§limit: u32Trait Implementations§
Source§impl Clone for TopOptions
impl Clone for TopOptions
Source§fn clone(&self) -> TopOptions
fn clone(&self) -> TopOptions
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 TopOptions
impl Debug for TopOptions
Source§impl Default for TopOptions
impl Default for TopOptions
Source§fn default() -> TopOptions
fn default() -> TopOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TopOptions
impl RefUnwindSafe for TopOptions
impl Send for TopOptions
impl Sync for TopOptions
impl Unpin for TopOptions
impl UnsafeUnpin for TopOptions
impl UnwindSafe for TopOptions
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