pub trait IntelligenceEngine: Send + Sync {
// Required method
fn generate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
context: &'life1 AssembledContext,
query: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
Trait for the CP Intelligence Module (IM)
An IntelligenceEngine is a read-only consumer of the semantic substrate.
It synthesizes information from retrieved context into human-readable answers.
Required Methods§
Sourcefn generate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
context: &'life1 AssembledContext,
query: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn generate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
context: &'life1 AssembledContext,
query: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Generate a synthesized answer from the provided context and query. This is a read-only operation and cannot mutate the underlying graph.