pub trait ToolInvoker: Send + Sync {
// Required method
fn invoke_tool(
&self,
tool_id: &str,
parameters: HashMap<String, Value>,
) -> Result<Value>;
}Expand description
Tool invocation capability for agents
This trait allows agents to invoke MCP tools with parameter validation and result handling.