pub struct ComputerToolCallOutputResource {
pub call_id: String,
pub acknowledged_safety_checks: Option<Vec<ComputerToolCallSafetyCheck>>,
pub output: ComputerScreenshotImage,
pub status: Option<ComputerToolCallOutputStatus>,
pub id: String,
}
Fields§
§call_id: String
The ID of the computer tool call that produced the output.
acknowledged_safety_checks: Option<Vec<ComputerToolCallSafetyCheck>>
The safety checks reported by the API that have been acknowledged by the developer.
output: ComputerScreenshotImage
§status: Option<ComputerToolCallOutputStatus>
The status of the message input. One of in_progress
, completed
, or
incomplete
. Populated when input items are returned via API.
id: String
The unique ID of the computer call tool output.
Implementations§
Source§impl ComputerToolCallOutputResource
impl ComputerToolCallOutputResource
Sourcepub fn builder() -> ComputerToolCallOutputResourceBuilder<((), (), (), (), ())>
pub fn builder() -> ComputerToolCallOutputResourceBuilder<((), (), (), (), ())>
Create a builder for building ComputerToolCallOutputResource
.
On the builder, call .call_id(...)
, .acknowledged_safety_checks(...)
(optional), .output(...)
(optional), .status(...)
(optional), .id(...)
to set the values of the fields.
Finally, call .build()
to create the instance of ComputerToolCallOutputResource
.
Trait Implementations§
Source§impl Clone for ComputerToolCallOutputResource
impl Clone for ComputerToolCallOutputResource
Source§fn clone(&self) -> ComputerToolCallOutputResource
fn clone(&self) -> ComputerToolCallOutputResource
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de> Deserialize<'de> for ComputerToolCallOutputResource
impl<'de> Deserialize<'de> for ComputerToolCallOutputResource
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 ComputerToolCallOutputResource
impl PartialEq for ComputerToolCallOutputResource
Source§fn eq(&self, other: &ComputerToolCallOutputResource) -> bool
fn eq(&self, other: &ComputerToolCallOutputResource) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ComputerToolCallOutputResource
Auto Trait Implementations§
impl Freeze for ComputerToolCallOutputResource
impl RefUnwindSafe for ComputerToolCallOutputResource
impl Send for ComputerToolCallOutputResource
impl Sync for ComputerToolCallOutputResource
impl Unpin for ComputerToolCallOutputResource
impl UnwindSafe for ComputerToolCallOutputResource
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