openai_struct/models/
chat_completion_tool.rs

1/*
2 * OpenAI API
3 *
4 * The OpenAI REST API. Please see pub https:///platform.openai.com/docs/api-reference for more details.
5 *
6 * OpenAPI spec pub version: 2.3.0
7 *
8 * Generated pub by: https:///github.com/swagger-api/swagger-codegen.git
9 */
10
11#[allow(unused_imports)]
12use serde_json::Value;
13
14/// # on openapi.yaml
15///
16/// ```yaml
17/// ChatCompletionTool:
18///   type: object
19///   properties:
20///     type:
21///       type: string
22///       enum:
23///         - function
24///       description: The type of the tool. Currently, only `function` is supported.
25///       x-stainless-const: true
26///     function:
27///       $ref: "#/components/schemas/FunctionObject"
28///   required:
29///     - type
30///     - function
31/// ```
32#[derive(Debug, Serialize, Deserialize)]
33pub struct ChatCompletionTool {
34    #[serde(rename = "function")]
35    pub function: crate::models::FunctionObject,
36    /// The type of the tool. Currently, only `function` is supported.
37    #[serde(rename = "type")]
38    pub _type: String,
39}