Class BetaResponseInputItem.ComputerCallOutput.Builder
-
- All Implemented Interfaces:
public final class BetaResponseInputItem.ComputerCallOutput.BuilderA builder for ComputerCallOutput.
-
-
Method Summary
-
-
Method Detail
-
callId
final BetaResponseInputItem.ComputerCallOutput.Builder callId(String callId)
The ID of the computer tool call that produced the output.
-
callId
final BetaResponseInputItem.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 BetaResponseInputItem.ComputerCallOutput.Builder output(BetaResponseComputerToolCallOutputScreenshot output)
A computer screenshot image used with the computer use tool.
-
output
final BetaResponseInputItem.ComputerCallOutput.Builder output(JsonField<BetaResponseComputerToolCallOutputScreenshot> output)
Sets Builder.output to an arbitrary JSON value.
You should usually call Builder.output with a well-typed BetaResponseComputerToolCallOutputScreenshot value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaResponseInputItem.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 BetaResponseInputItem.ComputerCallOutput.Builder id(String id)
The ID of the computer tool call output.
-
id
final BetaResponseInputItem.ComputerCallOutput.Builder id(Optional<String> id)
Alias for calling Builder.id with
id.orElse(null).
-
id
final BetaResponseInputItem.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 BetaResponseInputItem.ComputerCallOutput.Builder acknowledgedSafetyChecks(List<BetaResponseInputItem.ComputerCallOutput.AcknowledgedSafetyCheck> acknowledgedSafetyChecks)
The safety checks reported by the API that have been acknowledged by the developer.
-
acknowledgedSafetyChecks
final BetaResponseInputItem.ComputerCallOutput.Builder acknowledgedSafetyChecks(Optional<List<BetaResponseInputItem.ComputerCallOutput.AcknowledgedSafetyCheck>> acknowledgedSafetyChecks)
Alias for calling Builder.acknowledgedSafetyChecks with
acknowledgedSafetyChecks.orElse(null).
-
acknowledgedSafetyChecks
final BetaResponseInputItem.ComputerCallOutput.Builder acknowledgedSafetyChecks(JsonField<List<BetaResponseInputItem.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 BetaResponseInputItem.ComputerCallOutput.Builder addAcknowledgedSafetyCheck(BetaResponseInputItem.ComputerCallOutput.AcknowledgedSafetyCheck acknowledgedSafetyCheck)
Adds a single AcknowledgedSafetyCheck to acknowledgedSafetyChecks.
-
agent
final BetaResponseInputItem.ComputerCallOutput.Builder agent(BetaResponseInputItem.ComputerCallOutput.Agent agent)
The agent that produced this item.
-
agent
final BetaResponseInputItem.ComputerCallOutput.Builder agent(Optional<BetaResponseInputItem.ComputerCallOutput.Agent> agent)
Alias for calling Builder.agent with
agent.orElse(null).
-
agent
final BetaResponseInputItem.ComputerCallOutput.Builder agent(JsonField<BetaResponseInputItem.ComputerCallOutput.Agent> agent)
Sets Builder.agent to an arbitrary JSON value.
You should usually call Builder.agent with a well-typed Agent value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
status
final BetaResponseInputItem.ComputerCallOutput.Builder status(BetaResponseInputItem.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 BetaResponseInputItem.ComputerCallOutput.Builder status(Optional<BetaResponseInputItem.ComputerCallOutput.Status> status)
Alias for calling Builder.status with
status.orElse(null).
-
status
final BetaResponseInputItem.ComputerCallOutput.Builder status(JsonField<BetaResponseInputItem.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 BetaResponseInputItem.ComputerCallOutput.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaResponseInputItem.ComputerCallOutput.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaResponseInputItem.ComputerCallOutput.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaResponseInputItem.ComputerCallOutput.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaResponseInputItem.ComputerCallOutput.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaResponseInputItem.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()
-
-
-
-