pub struct EpisodicMemory { /* private fields */ }Expand description
Episodic memory storage
Implementations§
Source§impl EpisodicMemory
impl EpisodicMemory
Sourcepub fn store_episode(&mut self, episode: Episode) -> Result<()>
pub fn store_episode(&mut self, episode: Episode) -> Result<()>
Store an episode
Sourcepub fn get_episode(&self, id: MemoryId) -> Option<Episode>
pub fn get_episode(&self, id: MemoryId) -> Option<Episode>
Get episode by ID
Sourcepub fn query(&self, query: &EpisodeQuery) -> Vec<Episode>
pub fn query(&self, query: &EpisodeQuery) -> Vec<Episode>
Query episodes by criteria
Sourcepub fn all_episodes(&self) -> Vec<&Episode>
pub fn all_episodes(&self) -> Vec<&Episode>
Get all episodes (for consolidation)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for EpisodicMemory
impl !UnwindSafe for EpisodicMemory
impl Freeze for EpisodicMemory
impl Send for EpisodicMemory
impl Sync for EpisodicMemory
impl Unpin for EpisodicMemory
impl UnsafeUnpin for EpisodicMemory
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<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