openai_struct/models/
computer_tool_call.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 ComputerToolCall : A tool call to a computer use tool. See the  [computer use guide](/docs/guides/tools-computer-use) for more information.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct ComputerToolCall {
18    #[serde(rename = "action")]
19    pub action: crate::models::ComputerAction,
20    /// An identifier used when responding to the tool call with output.
21    #[serde(rename = "call_id")]
22    pub call_id: String,
23    /// The unique ID of the computer call.
24    #[serde(rename = "id")]
25    pub id: String,
26    /// The pending safety checks for the computer call.
27    #[serde(rename = "pending_safety_checks")]
28    pub pending_safety_checks: Vec<crate::models::ComputerToolCallSafetyCheck>,
29    /// The status of the item. One of `in_progress`, `completed`, or `incomplete`. Populated when items are returned via API.
30    #[serde(rename = "status")]
31    pub status: String,
32    /// The type of the computer call. Always `computer_call`.
33    #[serde(rename = "type")]
34    pub _type: String,
35}