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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/*
* 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 ComputerToolCallOutput : The output of a computer tool call.
#[allow(unused_imports)]
use serde_json::Value;
/// # on openapi.yaml
///
/// ```yaml
/// ComputerToolCallOutput:
/// type: object
/// title: Computer tool call output
/// description: |
/// The output of a computer tool call.
/// properties:
/// type:
/// type: string
/// description: >
/// The type of the computer tool call output. Always
/// `computer_call_output`.
/// enum:
/// - computer_call_output
/// default: computer_call_output
/// x-stainless-const: true
/// id:
/// type: string
/// description: |
/// The ID of the computer tool call output.
/// call_id:
/// type: string
/// description: |
/// The ID of the computer tool call that produced the output.
/// acknowledged_safety_checks:
/// type: array
/// description: >
/// The safety checks reported by the API that have been acknowledged by
/// the
///
/// developer.
/// items:
/// $ref: "#/components/schemas/ComputerToolCallSafetyCheck"
/// output:
/// $ref: "#/components/schemas/ComputerScreenshotImage"
/// status:
/// type: string
/// description: >
/// The status of the message input. One of `in_progress`, `completed`,
/// or
///
/// `incomplete`. Populated when input items are returned via API.
/// enum:
/// - in_progress
/// - completed
/// - incomplete
/// required:
/// - type
/// - call_id
/// - output
/// ```
#[derive(Debug, Serialize, Deserialize)]
pub struct ComputerToolCallOutput {
/// The safety checks reported by the API that have been acknowledged by the developer.
#[serde(rename = "acknowledged_safety_checks")]
pub acknowledged_safety_checks: Option<Vec<crate::models::ComputerToolCallSafetyCheck>>,
/// The ID of the computer tool call that produced the output.
#[serde(rename = "call_id")]
pub call_id: String,
/// The ID of the computer tool call output.
#[serde(rename = "id")]
pub id: Option<String>,
#[serde(rename = "output")]
pub output: crate::models::ComputerScreenshotImage,
/// The status of the message input. One of `in_progress`, `completed`, or `incomplete`. Populated when input items are returned via API.
#[serde(rename = "status")]
pub status: Option<String>,
/// The type of the computer tool call output. Always `computer_call_output`.
#[serde(rename = "type")]
#[serde(default = "default_type")]
pub _type: String,
}
fn default_type() -> String {
"computer_call_output".into()
}