pub trait ToolExecutor {
// Required methods
fn add(
&mut self,
name: String,
tool: Box<dyn Tool + Sync>,
) -> Option<Box<dyn Tool + Sync>>;
fn execute<'life0, 'async_trait>(
&'life0 self,
calls: Vec<ToolCall>,
) -> Pin<Box<dyn Future<Output = Vec<ToolMessage>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Executes tool calls with different strategies (parallel, sequential, etc.)