Function tool_sync

Source
pub fn tool_sync<F>(
    name: impl Into<String>,
    description: impl Into<String>,
    parameters: ToolParameterSchema,
    handler: F,
) -> ToolBox
where F: Fn(Value, ToolContext) -> Result<ToolResult> + Send + Sync + 'static,
Expand description

Quick helper to create a simple sync tool