openai_struct/models/assistant_tools_function.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/// AssistantToolsFunction:
18/// type: object
19/// title: Function tool
20/// properties:
21/// type:
22/// type: string
23/// description: "The type of tool being defined: `function`"
24/// enum:
25/// - function
26/// x-stainless-const: true
27/// function:
28/// $ref: "#/components/schemas/FunctionObject"
29/// required:
30/// - type
31/// - function
32/// ```
33#[derive(Debug, Serialize, Deserialize)]
34pub struct AssistantToolsFunction {
35 #[serde(rename = "function")]
36 pub function: crate::models::FunctionObject,
37 /// The type of tool being defined: `function`
38 #[serde(rename = "type")]
39 pub _type: String,
40}