pub struct RetrievalPlan {
pub needs_retrieval: bool,
pub use_tier1: bool,
pub use_tier3: bool,
pub cross_session_search: bool,
pub semantic_search: bool,
pub keyword_search: bool,
pub temporal_search: bool,
pub max_messages: usize,
pub max_tokens: usize,
pub search_topics: Vec<String>,
}Expand description
Plan for retrieving content from memory
Fields§
§needs_retrieval: boolWhether to retrieve from memory at all
use_tier1: boolWhich memory tiers to use
use_tier3: bool§cross_session_search: boolWhether to search across different sessions
semantic_search: boolSearch strategies to employ
keyword_search: bool§temporal_search: bool§max_messages: usizeLimits for retrieval
max_tokens: usize§search_topics: Vec<String>Specific topics to search for
Trait Implementations§
Source§impl Clone for RetrievalPlan
impl Clone for RetrievalPlan
Source§fn clone(&self) -> RetrievalPlan
fn clone(&self) -> RetrievalPlan
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 Debug for RetrievalPlan
impl Debug for RetrievalPlan
Auto Trait Implementations§
impl Freeze for RetrievalPlan
impl RefUnwindSafe for RetrievalPlan
impl Send for RetrievalPlan
impl Sync for RetrievalPlan
impl Unpin for RetrievalPlan
impl UnsafeUnpin for RetrievalPlan
impl UnwindSafe for RetrievalPlan
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more