create_sync_tool

Function create_sync_tool 

Source
pub fn create_sync_tool<F>(
    name: &'static str,
    handler: F,
) -> Arc<dyn ToolHandle>
where F: Fn(Value) -> Result<String> + Send + Sync + 'static,
Expand description

Create a tool from a synchronous function