function_declarations

Function function_declarations 

Source
pub fn function_declarations() -> Result<Value, ToolError>
Expand description

Generate function declarations in JSON format for LLM consumption.

This is equivalent to collect_tools().json() but provides a more convenient API for the common use case of generating LLM-compatible function declarations.

ยงExample

use tools_rs::function_declarations;

let declarations = function_declarations()?;
// Send to LLM for function calling