pub type ToolExecutionFn = Arc<dyn Fn(&str, Json, ToolExecutionNextFn) -> Pin<Box<dyn Future<Output = Result<Json>> + Send>> + Send + Sync>;Expand description
Wrap or replace tool execution.
A tool execution intercept receives the tool name, the current argument payload, and the continuation representing the rest of the chain.
Aliased Typeยง
pub struct ToolExecutionFn { /* private fields */ }