pub struct DefaultMemoryManager;Expand description
Default memory manager that delegates to existing runner functions.
Trait Implementations§
Source§impl MemoryManager for DefaultMemoryManager
impl MemoryManager for DefaultMemoryManager
Source§fn recall_memories<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session: &'life1 mut Session,
config: &'life2 AgentLoopConfig,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn recall_memories<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session: &'life1 mut Session,
config: &'life2 AgentLoopConfig,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Recall relevant memories for the current context.
Returns
true if any memories were injected.Source§fn maybe_compress<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'async_trait>(
&'life0 self,
_session: &'life1 mut Session,
_config: &'life2 AgentLoopConfig,
_phase: &'life3 str,
_session_id: &'life4 str,
_model_name: &'life5 str,
_tool_schemas: &'life6 [ToolSchema],
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
'life6: 'async_trait,
fn maybe_compress<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'async_trait>(
&'life0 self,
_session: &'life1 mut Session,
_config: &'life2 AgentLoopConfig,
_phase: &'life3 str,
_session_id: &'life4 str,
_model_name: &'life5 str,
_tool_schemas: &'life6 [ToolSchema],
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
'life6: 'async_trait,
Check if compression should be applied and apply it.
Returns
true if compression was performed.Auto Trait Implementations§
impl Freeze for DefaultMemoryManager
impl RefUnwindSafe for DefaultMemoryManager
impl Send for DefaultMemoryManager
impl Sync for DefaultMemoryManager
impl Unpin for DefaultMemoryManager
impl UnsafeUnpin for DefaultMemoryManager
impl UnwindSafe for DefaultMemoryManager
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