openai_rust_sdk/models/tools/
function_tools.rs

1//! Function tool configuration and types
2
3use crate::{De, Ser};
4use serde_json::Value;
5
6/// Function tool (existing from functions module)
7#[derive(Debug, Clone, Ser, De)]
8pub struct FunctionTool {
9    /// Function name
10    pub name: String,
11
12    /// Function description
13    pub description: String,
14
15    /// Function parameters schema
16    pub parameters: Value,
17
18    /// Whether to enforce strict parameter validation
19    #[serde(skip_serializing_if = "Option::is_none")]
20    pub strict: Option<bool>,
21}