pub struct SummarizingMemory { /* private fields */ }Implementations§
Source§impl SummarizingMemory
impl SummarizingMemory
pub fn new(model: Arc<dyn ModelProvider>, active_window_tokens: usize) -> Self
Trait Implementations§
Source§impl MemoryProvider for SummarizingMemory
impl MemoryProvider for SummarizingMemory
fn read<'life0, 'async_trait>(
&'life0 self,
options: MemoryReadOptions,
) -> Pin<Box<dyn Future<Output = Result<Vec<ModelMessage>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn write<'life0, 'async_trait>(
&'life0 self,
messages: Vec<ModelMessage>,
options: MemoryWriteOptions,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn clear<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations§
impl Freeze for SummarizingMemory
impl !RefUnwindSafe for SummarizingMemory
impl Send for SummarizingMemory
impl Sync for SummarizingMemory
impl Unpin for SummarizingMemory
impl UnsafeUnpin for SummarizingMemory
impl !UnwindSafe for SummarizingMemory
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