1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
* OpenAI API
*
* The OpenAI REST API. Please see pub https:///platform.openai.com/docs/api-reference for more details.
*
* OpenAPI spec pub version: 2.3.0
*
* Generated pub by: https:///github.com/swagger-api/swagger-codegen.git
*/
/// pub CodeInterpreterTextOutput : The output of a code interpreter tool call that is text.
#[allow(unused_imports)]
use serde_json::Value;
/// # on openapi.yaml
///
/// ```yaml
/// CodeInterpreterTextOutput:
/// type: object
/// title: Code interpreter text output
/// description: |
/// The output of a code interpreter tool call that is text.
/// properties:
/// type:
/// type: string
/// enum:
/// - logs
/// description: |
/// The type of the code interpreter text output. Always `logs`.
/// x-stainless-const: true
/// logs:
/// type: string
/// description: |
/// The logs of the code interpreter tool call.
/// required:
/// - type
/// - logs
/// ```
#[derive(Debug, Serialize, Deserialize)]
pub struct CodeInterpreterTextOutput {
/// The logs of the code interpreter tool call.
#[serde(rename = "logs")]
pub logs: String,
/// The type of the code interpreter text output. Always `logs`.
#[serde(rename = "type")]
#[serde(default = "default_type")]
pub _type: String,
}
impl Default for CodeInterpreterTextOutput {
fn default() -> CodeInterpreterTextOutput {
Self {
logs: "".to_string(),
_type: default_type(),
}
}
}
fn default_type() -> String {
"logs".into()
}