tool_sync

Function tool_sync 

Source
pub fn tool_sync<F>(
    name: impl Into<String>,
    description: impl Into<String>,
    parameters: ToolParameterSchema,
    handler: F,
) -> Arc<dyn Tool>
where F: Fn(Value, ToolContext) -> Result<ToolResult, Error> + Send + Sync + 'static,
Available on crate feature toolkit only.
Expand description

Quick helper to create a simple sync tool