Skip to main content

ToolExecutor

Trait ToolExecutor 

Source
pub trait ToolExecutor: Send + Sync {
    // Required methods
    fn execute<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: ToolExecutionRequest<'life1>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<ToolExecutionResult>, ToolExecutorError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;
    fn name(&self) -> &'static str;

    // Provided methods
    fn requires_parallel_patch_conflict_check(&self) -> bool { ... }
    fn decision_replay_policy(&self) -> DecisionReplayPolicy { ... }
}
Expand description

Strategy abstraction for tool execution.

Required Methods§

Source

fn execute<'life0, 'life1, 'async_trait>( &'life0 self, request: ToolExecutionRequest<'life1>, ) -> Pin<Box<dyn Future<Output = Result<Vec<ToolExecutionResult>, ToolExecutorError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Source

fn name(&self) -> &'static str

Stable strategy label for logs/debug output.

Provided Methods§

Source

fn requires_parallel_patch_conflict_check(&self) -> bool

Whether apply step should enforce parallel patch conflict checks.

Source

fn decision_replay_policy(&self) -> DecisionReplayPolicy

How runtime should replay resolved suspend decisions for this executor.

Implementors§