pub struct InMemoryLongTerm { /* private fields */ }Trait Implementations§
Source§impl Default for InMemoryLongTerm
impl Default for InMemoryLongTerm
Source§fn default() -> InMemoryLongTerm
fn default() -> InMemoryLongTerm
Returns the “default value” for a type. Read more
Source§impl LongTermMemory for InMemoryLongTerm
impl LongTermMemory for InMemoryLongTerm
Source§fn remember<'life0, 'async_trait>(
&'life0 self,
scope: Scope,
fact: Fact,
) -> Pin<Box<dyn Future<Output = Result<FactId, MemoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn remember<'life0, 'async_trait>(
&'life0 self,
scope: Scope,
fact: Fact,
) -> Pin<Box<dyn Future<Output = Result<FactId, MemoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Store a fact under
scope. Returns a stable id.Source§fn recall<'life0, 'life1, 'async_trait>(
&'life0 self,
scope: Scope,
query: &'life1 str,
k: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<Fact>, MemoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn recall<'life0, 'life1, 'async_trait>(
&'life0 self,
scope: Scope,
query: &'life1 str,
k: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<Fact>, MemoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Top-
k semantic recall under scope for the supplied query.Auto Trait Implementations§
impl !Freeze for InMemoryLongTerm
impl !RefUnwindSafe for InMemoryLongTerm
impl !UnwindSafe for InMemoryLongTerm
impl Send for InMemoryLongTerm
impl Sync for InMemoryLongTerm
impl Unpin for InMemoryLongTerm
impl UnsafeUnpin for InMemoryLongTerm
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