pub struct ComputerToolCallContent {
pub id: String,
pub call_id: String,
pub actions: Vec<Value>,
pub status: Option<String>,
pub pending_safety_checks: Option<Vec<ComputerSafetyCheck>>,
pub user_input_request: bool,
pub additional_properties: Map<String, Value>,
}Expand description
A computer-use request from the model: an ordered list of UI actions for
the application to perform, plus any safety checks the application must
review (upstream computer_tool_call, experimental COMPUTER_USE).
The data type is always available so transcripts holding it deserialize
anywhere; construct and answer one through the experimental-computer-use
feature’s API. A pending call (user_input_request) stops the function
invocation loop: the caller runs the actions and answers with a
ComputerToolResultContent.
Fields§
§id: StringThe provider’s output item id.
call_id: StringThe call id a result answers.
actions: Vec<Value>The ordered actions (provider-shaped objects: click, type, …).
status: Option<String>The provider status, if any.
pending_safety_checks: Option<Vec<ComputerSafetyCheck>>Safety checks the application must review and acknowledge explicitly.
user_input_request: boolWhether the call still awaits the application’s result. Providers clear it once a completed result answering the call is in the transcript.
additional_properties: Map<String, Value>Provider-specific extras.
Trait Implementations§
Source§impl Clone for ComputerToolCallContent
impl Clone for ComputerToolCallContent
Source§fn clone(&self) -> ComputerToolCallContent
fn clone(&self) -> ComputerToolCallContent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more