Skip to main content

execute_tool_calls

Function execute_tool_calls 

Source
pub fn execute_tool_calls(
    registry: &mut ToolRegistry,
    tool_calls: Vec<ToolCallRequest>,
    result_config: &ResultHandlerConfig,
    callback: &mut dyn ExecutionCallback,
) -> Result<String>
Expand description

Execute tool calls and return combined result string

§Arguments

  • registry - Tool registry to execute tools from
  • tool_calls - Vector of tool call requests
  • result_config - Configuration for result handling
  • callback - Optional callback for logging and custom behavior

§Returns

  • Result<String> - Combined results from all tool executions