pub fn execute_tool_calls_structured(
registry: &mut ToolRegistry,
tool_calls: Vec<ToolCallRequest>,
result_config: &ResultHandlerConfig,
callback: &mut dyn ExecutionCallback,
) -> Result<Vec<ToolExecutionResult>>Expand description
Execute tool calls and return structured results
Returns individual tool results that can be sent as separate tool messages to LLM providers.
§Arguments
registry- Tool registry to execute tools fromtool_calls- Vector of tool call requestsresult_config- Configuration for result handlingcallback- Optional callback for logging and custom behavior
§Returns
Result<Vec<ToolExecutionResult>>- Individual tool execution results