pub fn tool<F, Fut>(
name: impl Into<String>,
description: impl Into<String>,
parameters: ToolParameterSchema,
handler: F,
) -> Arc<dyn Tool>where
F: Fn(Value, ToolContext) -> Fut + Send + Sync + 'static,
Fut: Future<Output = Result<ToolResult, Error>> + Send + 'static,
Expand description
Quick helper to create a simple async tool