Function function_tool_with_schema

Source
pub fn function_tool_with_schema<F>(
    name: impl Into<String>,
    description: impl Into<String>,
    schema: ToolSchema,
    func: F,
) -> FunctionTool<F>
where F: Fn(HashMap<String, Value>) -> Result<String> + Send + Sync + 'static,
Expand description

Helper function to create a tool with custom schema