pub trait StepExecutor: Send + Sync {
// Required method
fn execute(
&self,
provider: &Arc<dyn AgentProvider>,
) -> impl Future<Output = Result<StepOutput, EngineError>> + Send;
}Expand description
Trait for step executors.
Each step type implements this trait to execute its specific operation
and return a StepOutput.
Required Methods§
Sourcefn execute(
&self,
provider: &Arc<dyn AgentProvider>,
) -> impl Future<Output = Result<StepOutput, EngineError>> + Send
fn execute( &self, provider: &Arc<dyn AgentProvider>, ) -> impl Future<Output = Result<StepOutput, EngineError>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.