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
/*
* 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 ComputerScreenshotImage : A computer screenshot image used with the computer use tool.
#[allow(unused_imports)]
use serde_json::Value;
/// # on openapi.yaml
///
/// ```yaml
/// ComputerScreenshotImage:
/// type: object
/// description: |
/// A computer screenshot image used with the computer use tool.
/// properties:
/// type:
/// type: string
/// enum:
/// - computer_screenshot
/// default: computer_screenshot
/// description: >
/// Specifies the event type. For a computer screenshot, this property
/// is
///
/// always set to `computer_screenshot`.
/// x-stainless-const: true
/// image_url:
/// type: string
/// description: The URL of the screenshot image.
/// file_id:
/// type: string
/// description: The identifier of an uploaded file that contains the screenshot.
/// required:
/// - type
/// ```
#[derive(Debug, Serialize, Deserialize)]
pub struct ComputerScreenshotImage {
/// The identifier of an uploaded file that contains the screenshot.
#[serde(rename = "file_id")]
pub file_id: Option<String>,
/// The URL of the screenshot image.
#[serde(rename = "image_url")]
pub image_url: Option<String>,
/// Specifies the event type. For a computer screenshot, this property is always set to `computer_screenshot`.
#[serde(rename = "type")]
#[serde(default = "default_type")]
pub _type: String,
}
fn default_type() -> String {
"computer_screenshot".into()
}