1 2 3 4 5 6 7 8
pub trait Tool { fn name(&self) -> &str; fn description(&self) -> String; fn parameters(&self) -> serde_json::Value; fn execute(&self, arguments: serde_json::Value) -> Result<serde_json::Value, String>; }