pub trait Memory: Memory {
// Provided methods
fn get_context<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ConversationContext, AgentError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: Sync + 'async_trait { ... }
fn compress<'life0, 'life1, 'async_trait>(
&'life0 self,
_summarizer: Option<&'life1 dyn Summarizer>,
) -> Pin<Box<dyn Future<Output = Result<CompressResult, AgentError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: Sync + 'async_trait { ... }
fn needs_compression(&self) -> bool { ... }
}Expand description
Extended memory trait that preserves the original interface.