Function tools

Source
pub fn tools() -> &'static [Tool]
Expand description

Returns a slice of all registered tools.

Each Tool includes its name, description, and parameter schema.

ยงExamples

use tool_calling::{tool, tools};

#[tool]
fn example_tool() -> String {
    "ok".to_string()
}

let all = tools();
assert!(all.iter().any(|t| t.name == "example_tool"));