pub trait Tool: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn description(&self) -> &str;
fn needs_approval(&self) -> bool;
fn execute(&self, input: Value, cwd: &Path) -> ToolResult;
}Expand description
A tool that can be invoked by the runtime.