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