Class ResponseInputItem.ComputerCallOutput.Builder
-
- All Implemented Interfaces:
public final class ResponseInputItem.ComputerCallOutput.Builder
A builder for ComputerCallOutput.
-
-
Method Summary
-
-
Method Detail
-
callId
final ResponseInputItem.ComputerCallOutput.Builder callId(String callId)
The ID of the computer tool call that produced the output.
-
callId
final ResponseInputItem.ComputerCallOutput.Builder callId(JsonField<String> callId)
Sets Builder.callId to an arbitrary JSON value.
You should usually call Builder.callId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
output
final ResponseInputItem.ComputerCallOutput.Builder output(ResponseComputerToolCallOutputScreenshot output)
A computer screenshot image used with the computer use tool.
-
output
final ResponseInputItem.ComputerCallOutput.Builder output(JsonField<ResponseComputerToolCallOutputScreenshot> output)
Sets Builder.output to an arbitrary JSON value.
You should usually call Builder.output with a well-typed ResponseComputerToolCallOutputScreenshot value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ResponseInputItem.ComputerCallOutput.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("computer_call_output")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
id
final ResponseInputItem.ComputerCallOutput.Builder id(String id)
The ID of the computer tool call output.
-
id
final ResponseInputItem.ComputerCallOutput.Builder id(Optional<String> id)
Alias for calling Builder.id with
id.orElse(null)
.
-
id
final ResponseInputItem.ComputerCallOutput.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
acknowledgedSafetyChecks
final ResponseInputItem.ComputerCallOutput.Builder acknowledgedSafetyChecks(List<ResponseInputItem.ComputerCallOutput.AcknowledgedSafetyCheck> acknowledgedSafetyChecks)
The safety checks reported by the API that have been acknowledged by the developer.
-
acknowledgedSafetyChecks
final ResponseInputItem.ComputerCallOutput.Builder acknowledgedSafetyChecks(Optional<List<ResponseInputItem.ComputerCallOutput.AcknowledgedSafetyCheck>> acknowledgedSafetyChecks)
Alias for calling Builder.acknowledgedSafetyChecks with
acknowledgedSafetyChecks.orElse(null)
.
-
acknowledgedSafetyChecks
final ResponseInputItem.ComputerCallOutput.Builder acknowledgedSafetyChecks(JsonField<List<ResponseInputItem.ComputerCallOutput.AcknowledgedSafetyCheck>> acknowledgedSafetyChecks)
Sets Builder.acknowledgedSafetyChecks to an arbitrary JSON value.
You should usually call Builder.acknowledgedSafetyChecks with a well-typed
List<AcknowledgedSafetyCheck>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addAcknowledgedSafetyCheck
final ResponseInputItem.ComputerCallOutput.Builder addAcknowledgedSafetyCheck(ResponseInputItem.ComputerCallOutput.AcknowledgedSafetyCheck acknowledgedSafetyCheck)
Adds a single AcknowledgedSafetyCheck to acknowledgedSafetyChecks.
-
status
final ResponseInputItem.ComputerCallOutput.Builder status(ResponseInputItem.ComputerCallOutput.Status status)
The status of the message input. One of
in_progress
,completed
, orincomplete
. Populated when input items are returned via API.
-
status
final ResponseInputItem.ComputerCallOutput.Builder status(Optional<ResponseInputItem.ComputerCallOutput.Status> status)
Alias for calling Builder.status with
status.orElse(null)
.
-
status
final ResponseInputItem.ComputerCallOutput.Builder status(JsonField<ResponseInputItem.ComputerCallOutput.Status> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed Status value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ResponseInputItem.ComputerCallOutput.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseInputItem.ComputerCallOutput.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseInputItem.ComputerCallOutput.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseInputItem.ComputerCallOutput.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseInputItem.ComputerCallOutput.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseInputItem.ComputerCallOutput build()
Returns an immutable instance of ComputerCallOutput.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.callId() .output()
-
-
-
-