pub trait Tool: Sync + Send {
// Required methods
fn info(&self) -> ToolInfo<'static>;
fn run(&self, argument: &Value) -> Result<Value>;
// Provided methods
fn check_type<'a>(&self, argument: &'a Value) -> Result<&'a Value> { ... }
fn fail(&self, argument: &Value) -> Result<Value> { ... }
}Expand description
A whale macro function.