pub struct MemoryManagerStore { /* private fields */ }Implementations§
Source§impl MemoryManagerStore
impl MemoryManagerStore
pub async fn new( base_dir: impl AsRef<Path>, agent_name: Option<&str>, ) -> Result<Self>
pub fn set_current_query(&self, query: impl Into<String>)
pub async fn load(&self) -> Result<()>
pub async fn stats(&self) -> Result<MemoryStats>
pub async fn search( &self, query: &str, limit: usize, ) -> Result<Vec<CompressedEntry>>
pub async fn clear_session(&self)
pub async fn flush_manager(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for MemoryManagerStore
impl Clone for MemoryManagerStore
Source§impl From<Mutex<MemoryManager>> for MemoryManagerStore
impl From<Mutex<MemoryManager>> for MemoryManagerStore
Source§fn from(manager: Mutex<MemoryManager>) -> Self
fn from(manager: Mutex<MemoryManager>) -> Self
Converts to this type from the input type.
Source§impl MemoryStore for MemoryManagerStore
impl MemoryStore for MemoryManagerStore
fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
entry: &'life1 MemoryEntry,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load_all<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn flush<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for MemoryManagerStore
impl !RefUnwindSafe for MemoryManagerStore
impl Send for MemoryManagerStore
impl Sync for MemoryManagerStore
impl Unpin for MemoryManagerStore
impl UnsafeUnpin for MemoryManagerStore
impl !UnwindSafe for MemoryManagerStore
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