Class ComputerTool.Builder
-
- All Implemented Interfaces:
public final class ComputerTool.Builder
A builder for ComputerTool.
-
-
Method Summary
-
-
Method Detail
-
displayHeight
final ComputerTool.Builder displayHeight(Double displayHeight)
The height of the computer display.
-
displayHeight
final ComputerTool.Builder displayHeight(JsonField<Double> displayHeight)
Sets Builder.displayHeight to an arbitrary JSON value.
You should usually call Builder.displayHeight with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
displayWidth
final ComputerTool.Builder displayWidth(Double displayWidth)
The width of the computer display.
-
displayWidth
final ComputerTool.Builder displayWidth(JsonField<Double> displayWidth)
Sets Builder.displayWidth to an arbitrary JSON value.
You should usually call Builder.displayWidth with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
environment
final ComputerTool.Builder environment(ComputerTool.Environment environment)
The type of computer environment to control.
-
environment
final ComputerTool.Builder environment(JsonField<ComputerTool.Environment> environment)
Sets Builder.environment to an arbitrary JSON value.
You should usually call Builder.environment with a well-typed Environment value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ComputerTool.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_use_preview")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ComputerTool.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ComputerTool.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ComputerTool.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ComputerTool.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ComputerTool.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ComputerTool build()
Returns an immutable instance of ComputerTool.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.displayHeight() .displayWidth() .environment()
-
-
-
-