MemoryObservationExtractor

Trait MemoryObservationExtractor 

Source
pub trait MemoryObservationExtractor: Send + Sync {
    // Required method
    fn extract<'life0, 'async_trait>(
        &'life0 self,
        context: ObservationExtractionContext,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<MemoryObservation>, MemoryError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Extracts candidate memories from an utterance.

Required Methods§

Source

fn extract<'life0, 'async_trait>( &'life0 self, context: ObservationExtractionContext, ) -> Pin<Box<dyn Future<Output = Result<Vec<MemoryObservation>, MemoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Extract observations. An empty result is normal and expected.

Implementors§