openai_struct/models/code_interpreter_tool_call.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 CodeInterpreterToolCall : A tool call to run code.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct CodeInterpreterToolCall {
18 /// The code to run.
19 #[serde(rename = "code")]
20 pub code: String,
21 /// The unique ID of the code interpreter tool call.
22 #[serde(rename = "id")]
23 pub id: String,
24 /// The results of the code interpreter tool call.
25 #[serde(rename = "results")]
26 pub results: Vec<crate::models::CodeInterpreterToolOutput>,
27 /// The status of the code interpreter tool call.
28 #[serde(rename = "status")]
29 pub status: String,
30 /// The type of the code interpreter tool call. Always `code_interpreter_call`.
31 #[serde(rename = "type")]
32 pub _type: String,
33}