pub struct RecallParams<'a> {
pub query: &'a str,
pub budget: usize,
pub trace: bool,
pub include_sparks: bool,
pub top: Option<usize>,
pub source: &'a str,
pub expand_deps: &'a str,
pub allow_trim: bool,
pub refine_mode: &'a str,
pub min_score: Option<f64>,
}Expand description
Parameters for KnowledgeBase::recall.
Borrowed, Default-able: construct with RecallParams { query, budget, source, ..Default::default() }.
Empty-string defaults are normalized inside recall: expand_deps empty → "false",
refine_mode empty → "off".
Fields§
§query: &'a str§budget: usize§trace: bool§include_sparks: bool§top: Option<usize>§source: &'a str§expand_deps: &'a str§allow_trim: bool§refine_mode: &'a str§min_score: Option<f64>Relevance gate: drop candidates whose fused score is below this value
before packing/trace, so the trace only records knowledge that was
actually surfaced. None disables the gate. Used by always-on hooks
(UserPromptSubmit / SessionStart) to stay high-frequency without noise.
Trait Implementations§
Source§impl<'a> Clone for RecallParams<'a>
impl<'a> Clone for RecallParams<'a>
Source§fn clone(&self) -> RecallParams<'a>
fn clone(&self) -> RecallParams<'a>
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<'a> Debug for RecallParams<'a>
impl<'a> Debug for RecallParams<'a>
Source§impl<'a> Default for RecallParams<'a>
impl<'a> Default for RecallParams<'a>
Source§fn default() -> RecallParams<'a>
fn default() -> RecallParams<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for RecallParams<'a>
impl<'a> RefUnwindSafe for RecallParams<'a>
impl<'a> Send for RecallParams<'a>
impl<'a> Sync for RecallParams<'a>
impl<'a> Unpin for RecallParams<'a>
impl<'a> UnsafeUnpin for RecallParams<'a>
impl<'a> UnwindSafe for RecallParams<'a>
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