Skip to main content

ToolExecutionPipeline

Trait ToolExecutionPipeline 

Source
pub trait ToolExecutionPipeline: Send + Sync {
    // Required method
    fn execute<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        tool: &'life1 dyn Tool,
        args: &'life2 Value,
        ctx: &'life3 ToolContext,
    ) -> Pin<Box<dyn Future<Output = AgentResult<ToolOutput>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}
Expand description

Pure execution pipeline — cares about how to safely execute a tool.

Responsibilities: policy hooks, timeout, output truncation. Does NOT do: tool lookup, event emission, user-event forwarding.

Required Methods§

Source

fn execute<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, tool: &'life1 dyn Tool, args: &'life2 Value, ctx: &'life3 ToolContext, ) -> Pin<Box<dyn Future<Output = AgentResult<ToolOutput>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§