pub trait ToolExecutor: Send + Sync {
// Required method
fn execute_tool<'life0, 'life1, 'async_trait>(
&'life0 self,
tool_name: &'life1 str,
args: Value,
) -> Pin<Box<dyn Future<Output = Result<Value, String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Trait for executing a tool by name with JSON arguments. This abstracts over the real ToolRegistry for testability.