Class BetaToolComputerUse20241022
-
- All Implemented Interfaces:
public final class BetaToolComputerUse20241022
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaToolComputerUse20241022.BuilderA builder for BetaToolComputerUse20241022.
-
Method Summary
Modifier and Type Method Description final LongdisplayHeightPx()The height of the display in pixels. final LongdisplayWidthPx()The width of the display in pixels. final JsonValue_name()Name of the tool. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("computer_20241022")final Optional<BetaCacheControlEphemeral>cacheControl()Create a cache control breakpoint at this content block. final Optional<Long>displayNumber()The X11 display number (e.g. final JsonField<Long>_displayHeightPx()Returns the raw JSON value of displayHeightPx. final JsonField<Long>_displayWidthPx()Returns the raw JSON value of displayWidthPx. final JsonField<BetaCacheControlEphemeral>_cacheControl()Returns the raw JSON value of cacheControl. final JsonField<Long>_displayNumber()Returns the raw JSON value of displayNumber. final Map<String, JsonValue>_additionalProperties()final BetaToolComputerUse20241022.BuildertoBuilder()final BetaToolComputerUse20241022validate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaToolComputerUse20241022.Builderbuilder()Returns a mutable builder for constructing an instance of BetaToolComputerUse20241022. -
-
Method Detail
-
displayHeightPx
final Long displayHeightPx()
The height of the display in pixels.
-
displayWidthPx
final Long displayWidthPx()
The width of the display in pixels.
-
_name
final JsonValue _name()
Name of the tool.
This is how the tool will be called by the model and in
tool_useblocks.Expected to always return the following:
JsonValue.from("computer")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("computer_20241022")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
cacheControl
final Optional<BetaCacheControlEphemeral> cacheControl()
Create a cache control breakpoint at this content block.
-
displayNumber
final Optional<Long> displayNumber()
The X11 display number (e.g. 0, 1) for the display.
-
_displayHeightPx
final JsonField<Long> _displayHeightPx()
Returns the raw JSON value of displayHeightPx.
Unlike displayHeightPx, this method doesn't throw if the JSON field has an unexpected type.
-
_displayWidthPx
final JsonField<Long> _displayWidthPx()
Returns the raw JSON value of displayWidthPx.
Unlike displayWidthPx, this method doesn't throw if the JSON field has an unexpected type.
-
_cacheControl
final JsonField<BetaCacheControlEphemeral> _cacheControl()
Returns the raw JSON value of cacheControl.
Unlike cacheControl, this method doesn't throw if the JSON field has an unexpected type.
-
_displayNumber
final JsonField<Long> _displayNumber()
Returns the raw JSON value of displayNumber.
Unlike displayNumber, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaToolComputerUse20241022.Builder toBuilder()
-
validate
final BetaToolComputerUse20241022 validate()
-
builder
final static BetaToolComputerUse20241022.Builder builder()
Returns a mutable builder for constructing an instance of BetaToolComputerUse20241022.
The following fields are required:
.displayHeightPx() .displayWidthPx()
-
-
-
-