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, Error> + Send + Sync + 'static,
Available on crate feature toolkit only.
Expand description

Create a tool from a synchronous function