pub struct AiMemoryExtractor { /* private fields */ }Expand description
AI-based memory extractor using a fast/cheap model.
Implementations§
Trait Implementations§
Source§impl MemoryExtractor for AiMemoryExtractor
impl MemoryExtractor for AiMemoryExtractor
Source§fn extract<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
text: &'life1 str,
session_id: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<MemoryEntry>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn extract<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
text: &'life1 str,
session_id: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<MemoryEntry>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Extract memories from conversation text using AI.
Source§fn model_name(&self) -> &str
fn model_name(&self) -> &str
Get the model name used for extraction.
Auto Trait Implementations§
impl Freeze for AiMemoryExtractor
impl !RefUnwindSafe for AiMemoryExtractor
impl Send for AiMemoryExtractor
impl Sync for AiMemoryExtractor
impl Unpin for AiMemoryExtractor
impl UnsafeUnpin for AiMemoryExtractor
impl !UnwindSafe for AiMemoryExtractor
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