pub trait RetrievalPlanExtractor: Send + Sync {
// Required method
fn extract<'life0, 'async_trait>(
&'life0 self,
context: RetrievalExtractionContext,
) -> Pin<Box<dyn Future<Output = Result<RetrievalPlan, MemoryError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Produces a retrieval plan from conversation context.
Required Methods§
Sourcefn extract<'life0, 'async_trait>(
&'life0 self,
context: RetrievalExtractionContext,
) -> Pin<Box<dyn Future<Output = Result<RetrievalPlan, MemoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn extract<'life0, 'async_trait>(
&'life0 self,
context: RetrievalExtractionContext,
) -> Pin<Box<dyn Future<Output = Result<RetrievalPlan, MemoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Extract a plan.