pub struct MemorySystem { /* private fields */ }Implementations§
Source§impl MemorySystem
impl MemorySystem
pub fn new(config: MemoryConfig) -> Self
pub async fn initialize(&mut self) -> Result<()>
pub async fn store_agent_metadata( &mut self, _agent_id: &str, _agent: &Agent, ) -> Result<()>
pub async fn store_task_result( &mut self, _agent_id: &str, _task_id: &str, _result: &TaskResult, ) -> Result<()>
pub async fn store_tool_usage( &mut self, _agent_id: &str, _tool_name: &str, _result: &ToolResult, ) -> Result<()>
pub async fn get_agent_memory( &self, _agent_id: &str, ) -> Result<Vec<MemoryEntry>>
pub async fn store( &mut self, _agent_id: &str, _key: String, _data: Value, _metadata: Option<HashMap<String, String>>, ) -> Result<()>
pub async fn get_total_entries(&self) -> u64
Auto Trait Implementations§
impl Freeze for MemorySystem
impl RefUnwindSafe for MemorySystem
impl Send for MemorySystem
impl Sync for MemorySystem
impl Unpin for MemorySystem
impl UnwindSafe for MemorySystem
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