pub struct SearchOptions<'a> {
pub user_id: Option<&'a str>,
pub agent_id: Option<&'a str>,
pub run_id: Option<&'a str>,
pub limit: usize,
pub filters: Option<&'a Value>,
pub rerank: bool,
pub threshold: Option<f32>,
pub task_type: Option<&'a str>,
}Expand description
Options for the MemoryEngine::search() method.
Fields§
§user_id: Option<&'a str>§agent_id: Option<&'a str>§run_id: Option<&'a str>§limit: usize§filters: Option<&'a Value>§rerank: bool§threshold: Option<f32>§task_type: Option<&'a str>Override auto-classification with a caller-provided task type. When set, the LLM classification call is skipped.
Trait Implementations§
Source§impl<'a> Clone for SearchOptions<'a>
impl<'a> Clone for SearchOptions<'a>
Source§fn clone(&self) -> SearchOptions<'a>
fn clone(&self) -> SearchOptions<'a>
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<'a> Debug for SearchOptions<'a>
impl<'a> Debug for SearchOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for SearchOptions<'a>
impl<'a> RefUnwindSafe for SearchOptions<'a>
impl<'a> Send for SearchOptions<'a>
impl<'a> Sync for SearchOptions<'a>
impl<'a> Unpin for SearchOptions<'a>
impl<'a> UnsafeUnpin for SearchOptions<'a>
impl<'a> UnwindSafe for SearchOptions<'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