openai_struct/models/
computer_use_preview_tool.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 ComputerUsePreviewTool : A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct ComputerUsePreviewTool {
18    /// The height of the computer display.
19    #[serde(rename = "display_height")]
20    pub display_height: i32,
21    /// The width of the computer display.
22    #[serde(rename = "display_width")]
23    pub display_width: i32,
24    /// The type of computer environment to control.
25    #[serde(rename = "environment")]
26    pub environment: String,
27    /// The type of the computer use tool. Always `computer_use_preview`.
28    #[serde(rename = "type")]
29    pub _type: String,
30}