Skip to main content

tool

Function tool 

Source
pub fn tool<I: JsonSchema + 'static, O: JsonSchema + 'static>(
    name: &'static str,
    title: &'static str,
    description: &'static str,
    docs: &[(&str, &str)],
) -> Tool
Expand description

Builds one tool: read-only annotations, schemas from the types, and the given property descriptions.