llm_cascade/models/tool.rs
1//! Tool definition for function calling.
2
3use serde::{Deserialize, Serialize};
4
5/// Describes a tool (function) available for the model to call.
6#[derive(Debug, Clone, Serialize, Deserialize)]
7pub struct ToolDefinition {
8 /// The function name.
9 pub name: String,
10 /// A description of what the function does.
11 pub description: String,
12 /// JSON Schema object describing the function parameters.
13 pub parameters: serde_json::Value,
14}