Skip to main content

execute_tool

Function execute_tool 

Source
pub async fn execute_tool(
    registry: &ToolRegistry,
    tool_call: &ToolCall,
) -> Result<String>
Expand description

Execute a tool from a ToolCall

§Arguments

  • registry - The tool registry containing registered tools
  • tool_call - The tool call from the LLM

§Returns

The string result from tool execution