pub struct RecallSource { /* private fields */ }Expand description
State shared by every turn’s FullRecall.
Implementations§
Source§impl RecallSource
impl RecallSource
pub fn new(store: Arc<dyn MemoryStores>, settings: RecallSettings) -> Self
Sourcepub fn with_session_projects(self, projects: Arc<dyn SessionProjects>) -> Self
pub fn with_session_projects(self, projects: Arc<dyn SessionProjects>) -> Self
Recall an episode only on turns in its conversation’s project.
Sourcepub fn with_project_notes(self, notes: Arc<ProjectNotes>) -> Self
pub fn with_project_notes(self, notes: Arc<ProjectNotes>) -> Self
Show notes on turns that work in a project.
Auto Trait Implementations§
impl !Freeze for RecallSource
impl !RefUnwindSafe for RecallSource
impl !UnwindSafe for RecallSource
impl Forget for RecallSource
impl Move for RecallSource
impl Send for RecallSource
impl Sync for RecallSource
impl Unpin for RecallSource
impl UnsafeUnpin for RecallSourcewhere
*const ArcInner<dyn MemoryStores> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn MemoryStores>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
Align4<u32>: UnsafeUnpin,
Align1<u8>: UnsafeUnpin,
*const Waiter is !null: UnsafeUnpin,
Align8<usize>: UnsafeUnpin,
PhantomData<(String, Vec<String>)>: UnsafeUnpin,
*const ArcInner<ProjectNotes> is !null: UnsafeUnpin,
PhantomData<ArcInner<ProjectNotes>>: UnsafeUnpin,
*const ArcInner<dyn SessionProjects> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn SessionProjects>>: UnsafeUnpin,
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> 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