pub fn create_agent_tool_executor(
tool: Arc<AgentTool>,
) -> impl Fn(Value, &ToolContext) -> Pin<Box<dyn Future<Output = Result<ToolResult, AgentError>> + Send>> + Send + Sync + 'staticExpand description
Create a tool executor closure from an AgentTool for use with
QueryEngine::register_tool().
The executor clones the AgentTool (via Arc) and calls its execute method.