pub trait Planner: Send + Sync {
// Required method
fn plan<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
intent: &'life1 Intent,
context: &'life2 PlannerContext,
) -> Pin<Box<dyn Future<Output = Result<PlannerOutput, PlanError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
}Expand description
Planner trait - generates execution plans from user intent
Implementations can use different LLM backends or planning strategies.
Required Methods§
Sourcefn plan<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
intent: &'life1 Intent,
context: &'life2 PlannerContext,
) -> Pin<Box<dyn Future<Output = Result<PlannerOutput, PlanError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn plan<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
intent: &'life1 Intent,
context: &'life2 PlannerContext,
) -> Pin<Box<dyn Future<Output = Result<PlannerOutput, PlanError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Generate output from user intent
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".