pub struct ComputerToolCall {
pub id: String,
pub call_id: String,
pub action: ComputerAction,
pub pending_safety_checks: Vec<ComputerToolCallSafetyCheck>,
pub status: ComputerToolCallStatus,
}
Expand description
A tool call to a computer use tool. See the computer use guide for more information.
Fields§
§id: String
The unique ID of the computer call.
call_id: String
An identifier used when responding to the tool call with output.
action: ComputerAction
§pending_safety_checks: Vec<ComputerToolCallSafetyCheck>
The pending safety checks for the computer call.
status: ComputerToolCallStatus
The status of the item. One of in_progress
, completed
, or
incomplete
. Populated when items are returned via API.
Implementations§
Source§impl ComputerToolCall
impl ComputerToolCall
Sourcepub fn builder() -> ComputerToolCallBuilder<((), (), (), (), ())>
pub fn builder() -> ComputerToolCallBuilder<((), (), (), (), ())>
Create a builder for building ComputerToolCall
.
On the builder, call .id(...)
, .call_id(...)
, .action(...)
, .pending_safety_checks(...)
, .status(...)
to set the values of the fields.
Finally, call .build()
to create the instance of ComputerToolCall
.
Trait Implementations§
Source§impl Clone for ComputerToolCall
impl Clone for ComputerToolCall
Source§fn clone(&self) -> ComputerToolCall
fn clone(&self) -> ComputerToolCall
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ComputerToolCall
impl Debug for ComputerToolCall
Source§impl<'de> Deserialize<'de> for ComputerToolCall
impl<'de> Deserialize<'de> for ComputerToolCall
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ComputerToolCall
impl PartialEq for ComputerToolCall
Source§impl Serialize for ComputerToolCall
impl Serialize for ComputerToolCall
impl StructuralPartialEq for ComputerToolCall
Auto Trait Implementations§
impl Freeze for ComputerToolCall
impl RefUnwindSafe for ComputerToolCall
impl Send for ComputerToolCall
impl Sync for ComputerToolCall
impl Unpin for ComputerToolCall
impl UnwindSafe for ComputerToolCall
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more