Class ResponseComputerToolCall.Action.Drag
-
- All Implemented Interfaces:
public final class ResponseComputerToolCall.Action.DragA drag action.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseComputerToolCall.Action.Drag.BuilderA builder for Drag.
public final classResponseComputerToolCall.Action.Drag.PathAn x/y coordinate pair, e.g.
{ x: 100, y: 200 }.
-
Method Summary
Modifier and Type Method Description final List<ResponseComputerToolCall.Action.Drag.Path>path()An array of coordinates representing the path of the drag action. final JsonValue_type()Specifies the event type. final Optional<List<String>>keys()The keys being held while dragging the mouse. final JsonField<List<ResponseComputerToolCall.Action.Drag.Path>>_path()Returns the raw JSON value of path. final JsonField<List<String>>_keys()Returns the raw JSON value of keys. final Map<String, JsonValue>_additionalProperties()final ResponseComputerToolCall.Action.Drag.BuildertoBuilder()final ResponseComputerToolCall.Action.Dragvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseComputerToolCall.Action.Drag.Builderbuilder()Returns a mutable builder for constructing an instance of Drag. -
-
Method Detail
-
path
final List<ResponseComputerToolCall.Action.Drag.Path> path()
An array of coordinates representing the path of the drag action. Coordinates will appear as an array of objects, eg
[ { x: 100, y: 200 }, { x: 200, y: 300 } ]
-
_type
final JsonValue _type()
Specifies the event type. For a drag action, this property is always set to
drag.Expected to always return the following:
JsonValue.from("drag")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_path
final JsonField<List<ResponseComputerToolCall.Action.Drag.Path>> _path()
Returns the raw JSON value of path.
Unlike path, this method doesn't throw if the JSON field has an unexpected type.
-
_keys
final JsonField<List<String>> _keys()
Returns the raw JSON value of keys.
Unlike keys, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseComputerToolCall.Action.Drag.Builder toBuilder()
-
validate
final ResponseComputerToolCall.Action.Drag validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ResponseComputerToolCall.Action.Drag.Builder builder()
Returns a mutable builder for constructing an instance of Drag.
The following fields are required:
.path()
-
-
-
-