pub trait ToolHandler: Send + Sync {
// Required methods
fn kind(&self) -> ToolKind;
fn handle<'life0, 'async_trait>(
&'life0 self,
invocation: ToolInvocation,
) -> Pin<Box<dyn Future<Output = Result<ToolOutput, FunctionCallError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided methods
fn matches_kind(&self, kind: ToolKind) -> bool { ... }
fn is_mutating(&self) -> bool { ... }
}