pub trait Planner: Send + Sync {
// Required methods
fn plan<'life0, 'life1, 'async_trait>(
&'life0 self,
task: &'life1 str,
context: PlanContext,
) -> Pin<Box<dyn Future<Output = Result<Plan>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_plan<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
plan: &'life1 mut Plan,
progress: &'life2 Progress,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}
Expand description
Planner trait for task decomposition and planning
Required Methods§
Sourcefn plan<'life0, 'life1, 'async_trait>(
&'life0 self,
task: &'life1 str,
context: PlanContext,
) -> Pin<Box<dyn Future<Output = Result<Plan>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn plan<'life0, 'life1, 'async_trait>(
&'life0 self,
task: &'life1 str,
context: PlanContext,
) -> Pin<Box<dyn Future<Output = Result<Plan>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create a plan from a high-level task description
Sourcefn update_plan<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
plan: &'life1 mut Plan,
progress: &'life2 Progress,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn update_plan<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
plan: &'life1 mut Plan,
progress: &'life2 Progress,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Update a plan based on progress