pub(crate) trait JsonToolHandler<S>: Send + Sync {
// Required methods
fn asks_for_confirmation(&self) -> bool;
fn call_with_json<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
state: &'life1 S,
ctx: &'life2 RequestContext,
arguments: Map<String, Value>,
) -> Pin<Box<dyn Future<Output = Result<ToolOutcome, ToolError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
A ToolHandler taking its arguments as JSON, so that one registry holds every tool.