create_tool

Function create_tool 

Source
pub fn create_tool<F, Fut>(
    name: &'static str,
    _description: &'static str,
    handler: F,
) -> Arc<dyn ToolHandle>
where F: Fn(Value) -> Fut + Send + Sync + 'static, Fut: Future<Output = Result<String>> + Send + 'static,