openai_struct/models/function_tool_call_output_resource.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#[derive(Debug, Serialize, Deserialize)]
15pub struct FunctionToolCallOutputResource {
16 /// The unique ID of the function tool call generated by the model.
17 #[serde(rename = "call_id")]
18 pub call_id: String,
19 /// The unique ID of the function call tool output.
20 #[serde(rename = "id")]
21 pub id: String,
22 /// A JSON string of the output of the function tool call.
23 #[serde(rename = "output")]
24 pub output: String,
25 /// The status of the item. One of `in_progress`, `completed`, or `incomplete`. Populated when items are returned via API.
26 #[serde(rename = "status")]
27 pub status: Option<String>,
28 /// The type of the function tool call output. Always `function_call_output`.
29 #[serde(rename = "type")]
30 pub _type: String,
31}