pub trait StepContinuePolicy: Send + Sync {
// Required method
fn should_continue<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
plan: &'life1 ExecutionPlan,
current_step: &'life2 PlanStep,
) -> Pin<Box<dyn Future<Output = Result<bool, AgentError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
}Expand description
Decides whether the plan should continue executing a given step.
Required Methods§
fn should_continue<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
plan: &'life1 ExecutionPlan,
current_step: &'life2 PlanStep,
) -> Pin<Box<dyn Future<Output = Result<bool, AgentError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".