Skip to main content

StepExecutor

Trait StepExecutor 

Source
pub trait StepExecutor: Send + Sync {
    // Required method
    fn execute_step<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        step: &'life1 PlanStep,
        plan_context: &'life2 Value,
    ) -> Pin<Box<dyn Future<Output = Result<StepResult, AgentError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             Self: 'async_trait;
}
Expand description

Executes a single PlanStep and returns its result.

Implementors know how to interpret step.payload for their domain.

Required Methods§

Source

fn execute_step<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, step: &'life1 PlanStep, plan_context: &'life2 Value, ) -> Pin<Box<dyn Future<Output = Result<StepResult, 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".

Implementors§