pub struct StoreRecallSource<'a> { /* private fields */ }Expand description
The canonical RecallSource: crate::store::ConversationStore::search
(already fenced to the store’s workspace key) minus the current
conversation. The TUI constructs one per turn next to its NoteSink.
Implementations§
Source§impl<'a> StoreRecallSource<'a>
impl<'a> StoreRecallSource<'a>
Sourcepub fn new(
store: &'a ConversationStore,
current_conversation_id: &'a str,
) -> Self
pub fn new( store: &'a ConversationStore, current_conversation_id: &'a str, ) -> Self
current_conversation_id is the conversation the model is in right
now — its turns never appear in results (that’s what context is for).
Trait Implementations§
Source§impl RecallSource for StoreRecallSource<'_>
impl RecallSource for StoreRecallSource<'_>
Source§fn search(&self, query: &str, limit: usize) -> Result<Vec<SearchHit>>
fn search(&self, query: &str, limit: usize) -> Result<Vec<SearchHit>>
Return up to
limit best-first hits for query (plain keywords;
the executor has already pre-flighted the 17.3 sanitizer).Source§fn this_conversation_recent(&self, limit: usize) -> Result<Vec<SearchHit>>
fn this_conversation_recent(&self, limit: usize) -> Result<Vec<SearchHit>>
Return up to
limit of THIS conversation’s most recent durable turns —
the deliberate OPPOSITE of Self::search’s exclusion filter (#714). Read moreAuto Trait Implementations§
impl<'a> Freeze for StoreRecallSource<'a>
impl<'a> RefUnwindSafe for StoreRecallSource<'a>
impl<'a> Send for StoreRecallSource<'a>
impl<'a> Sync for StoreRecallSource<'a>
impl<'a> Unpin for StoreRecallSource<'a>
impl<'a> UnsafeUnpin for StoreRecallSource<'a>
impl<'a> UnwindSafe for StoreRecallSource<'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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
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