Class ResponseInputItem.ComputerCallOutput
-
- All Implemented Interfaces:
public final class ResponseInputItem.ComputerCallOutputThe output of a computer tool call.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseInputItem.ComputerCallOutput.BuilderA builder for ComputerCallOutput.
public final classResponseInputItem.ComputerCallOutput.AcknowledgedSafetyCheckA pending safety check for the computer call.
public final classResponseInputItem.ComputerCallOutput.StatusThe status of the message input. One of
in_progress,completed, orincomplete. Populated when input items are returned via API.
-
Method Summary
Modifier and Type Method Description final StringcallId()The ID of the computer tool call that produced the output. final ResponseComputerToolCallOutputScreenshotoutput()A computer screenshot image used with the computer use tool. final JsonValue_type()The type of the computer tool call output. final Optional<String>id()The ID of the computer tool call output. final Optional<List<ResponseInputItem.ComputerCallOutput.AcknowledgedSafetyCheck>>acknowledgedSafetyChecks()The safety checks reported by the API that have been acknowledged by the developer. final Optional<ResponseInputItem.ComputerCallOutput.Status>status()The status of the message input. final JsonField<String>_callId()Returns the raw JSON value of callId. final JsonField<ResponseComputerToolCallOutputScreenshot>_output()Returns the raw JSON value of output. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<List<ResponseInputItem.ComputerCallOutput.AcknowledgedSafetyCheck>>_acknowledgedSafetyChecks()Returns the raw JSON value of acknowledgedSafetyChecks. final JsonField<ResponseInputItem.ComputerCallOutput.Status>_status()Returns the raw JSON value of status. final Map<String, JsonValue>_additionalProperties()final ResponseInputItem.ComputerCallOutput.BuildertoBuilder()final ResponseInputItem.ComputerCallOutputvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseInputItem.ComputerCallOutput.Builderbuilder()Returns a mutable builder for constructing an instance of ComputerCallOutput. -
-
Method Detail
-
output
final ResponseComputerToolCallOutputScreenshot output()
A computer screenshot image used with the computer use tool.
-
_type
final JsonValue _type()
The type of the computer tool call output. Always
computer_call_output.Expected to always return the following:
JsonValue.from("computer_call_output")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
acknowledgedSafetyChecks
final Optional<List<ResponseInputItem.ComputerCallOutput.AcknowledgedSafetyCheck>> acknowledgedSafetyChecks()
The safety checks reported by the API that have been acknowledged by the developer.
-
status
final Optional<ResponseInputItem.ComputerCallOutput.Status> status()
The status of the message input. One of
in_progress,completed, orincomplete. Populated when input items are returned via API.
-
_callId
final JsonField<String> _callId()
Returns the raw JSON value of callId.
Unlike callId, this method doesn't throw if the JSON field has an unexpected type.
-
_output
final JsonField<ResponseComputerToolCallOutputScreenshot> _output()
Returns the raw JSON value of output.
Unlike output, this method doesn't throw if the JSON field has an unexpected type.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_acknowledgedSafetyChecks
final JsonField<List<ResponseInputItem.ComputerCallOutput.AcknowledgedSafetyCheck>> _acknowledgedSafetyChecks()
Returns the raw JSON value of acknowledgedSafetyChecks.
Unlike acknowledgedSafetyChecks, this method doesn't throw if the JSON field has an unexpected type.
-
_status
final JsonField<ResponseInputItem.ComputerCallOutput.Status> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseInputItem.ComputerCallOutput.Builder toBuilder()
-
validate
final ResponseInputItem.ComputerCallOutput validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ResponseInputItem.ComputerCallOutput.Builder builder()
Returns a mutable builder for constructing an instance of ComputerCallOutput.
The following fields are required:
.callId() .output()
-
-
-
-