pub trait ToolHandler: Send + Sync {
// Required method
fn handle<'life0, 'async_trait>(
&'life0 self,
args: Value,
extra: RequestHandlerExtra,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn metadata(&self) -> Option<ToolInfo> { ... }
}Expand description
Handler for tool execution.