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