openai_struct/models/computer_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/// # on openapi.yaml
15///
16/// ```yaml
17/// ComputerToolCallOutputResource:
18/// allOf:
19/// - $ref: "#/components/schemas/ComputerToolCallOutput"
20/// - type: object
21/// properties:
22/// id:
23/// type: string
24/// description: |
25/// The unique ID of the computer call tool output.
26/// required:
27/// - id
28/// ```
29#[derive(Debug, Serialize, Deserialize)]
30pub struct ComputerToolCallOutputResource {
31 /// The safety checks reported by the API that have been acknowledged by the developer.
32 #[serde(rename = "acknowledged_safety_checks")]
33 pub acknowledged_safety_checks: Option<Vec<crate::models::ComputerToolCallSafetyCheck>>,
34 /// The ID of the computer tool call that produced the output.
35 #[serde(rename = "call_id")]
36 pub call_id: String,
37 /// The unique ID of the computer call tool output.
38 #[serde(rename = "id")]
39 pub id: String,
40 #[serde(rename = "output")]
41 pub output: crate::models::ComputerScreenshotImage,
42 /// The status of the message input. One of `in_progress`, `completed`, or `incomplete`. Populated when input items are returned via API.
43 #[serde(rename = "status")]
44 pub status: Option<String>,
45 /// The type of the computer tool call output. Always `computer_call_output`.
46 #[serde(rename = "type")]
47 #[serde(default = "default_type")]
48 pub _type: String,
49}
50
51fn default_type() -> String {
52 "computer_call_output".into()
53}