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§
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,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".