Skip to main content

DistillationMemoryWriter

Trait DistillationMemoryWriter 

Source
pub trait DistillationMemoryWriter: Send + Sync {
    // Required methods
    fn store_user_fact<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        session_id: &'life1 str,
        fact: &'life2 DistilledFact,
    ) -> Pin<Box<dyn Future<Output = MemoryResult<DistillationMemoryWrite>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn store_agent_fact<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        session_id: &'life1 str,
        fact: &'life2 DistilledFact,
    ) -> Pin<Box<dyn Future<Output = MemoryResult<DistillationMemoryWrite>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn store_user_fact<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, session_id: &'life1 str, fact: &'life2 DistilledFact, ) -> Pin<Box<dyn Future<Output = MemoryResult<DistillationMemoryWrite>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn store_agent_fact<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, session_id: &'life1 str, fact: &'life2 DistilledFact, ) -> Pin<Box<dyn Future<Output = MemoryResult<DistillationMemoryWrite>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§