PlannerHandle

Trait PlannerHandle 

Source
pub trait PlannerHandle:
    Send
    + Sync
    + Any {
    // Required methods
    fn plan<'life0, 'async_trait>(
        &'life0 self,
        context: PlannerContext,
        state: Arc<AgentStateSnapshot>,
    ) -> Pin<Box<dyn Future<Output = Result<PlannerDecision>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn as_any(&self) -> &dyn Any;
}
Expand description

Planner interface responsible for deciding which actions to take.

Required Methods§

Source

fn plan<'life0, 'async_trait>( &'life0 self, context: PlannerContext, state: Arc<AgentStateSnapshot>, ) -> Pin<Box<dyn Future<Output = Result<PlannerDecision>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn as_any(&self) -> &dyn Any

Enable downcasting to concrete types

Implementors§