create_simple_tool

Function create_simple_tool 

Source
pub fn create_simple_tool<F, Fut>(
    name: impl Into<String>,
    description: impl Into<String>,
    schema: ToolInputSchema,
    handler: F,
) -> ToolDefinition
where F: Fn(Value) -> Fut + Send + Sync + 'static, Fut: Future<Output = Result<String>> + Send + 'static,
Expand description

Helper function to create a simple text-based tool