openai_struct/models/code_interpreter_file_output.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/// pub CodeInterpreterFileOutput : The output of a code interpreter tool call that is a file.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16/// # on openapi.yaml
17///
18/// ```yaml
19/// CodeInterpreterFileOutput:
20/// type: object
21/// title: Code interpreter file output
22/// description: |
23/// The output of a code interpreter tool call that is a file.
24/// properties:
25/// type:
26/// type: string
27/// enum:
28/// - files
29/// description: |
30/// The type of the code interpreter file output. Always `files`.
31/// x-stainless-const: true
32/// files:
33/// type: array
34/// items:
35/// type: object
36/// properties:
37/// mime_type:
38/// type: string
39/// description: |
40/// The MIME type of the file.
41/// file_id:
42/// type: string
43/// description: |
44/// The ID of the file.
45/// required:
46/// - mime_type
47/// - file_id
48/// required:
49/// - type
50/// - files
51/// ```
52#[derive(Debug, Serialize, Deserialize)]
53pub struct CodeInterpreterFileOutput {
54 #[serde(rename = "files")]
55 pub files: Vec<crate::models::CodeInterpreterFileOutputFiles>,
56 /// The type of the code interpreter file output. Always `files`.
57 #[serde(rename = "type")]
58 pub _type: String,
59}