Package com.openai.models.responses
Class ResponseComputerToolCall.Action.Drag
-
- All Implemented Interfaces:
public final class ResponseComputerToolCall.Action.Drag
A drag action.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ResponseComputerToolCall.Action.Drag.Builder
A builder for Drag.
public final class
ResponseComputerToolCall.Action.Drag.Path
A series of x/y coordinate pairs in the drag path.
-
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 JsonField<List<ResponseComputerToolCall.Action.Drag.Path>>
_path()
Returns the raw JSON value of path. final Map<String, JsonValue>
_additionalProperties()
final ResponseComputerToolCall.Action.Drag.Builder
toBuilder()
final ResponseComputerToolCall.Action.Drag
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ResponseComputerToolCall.Action.Drag.Builder
builder()
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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseComputerToolCall.Action.Drag.Builder toBuilder()
-
validate
final ResponseComputerToolCall.Action.Drag validate()
-
builder
final static ResponseComputerToolCall.Action.Drag.Builder builder()
Returns a mutable builder for constructing an instance of Drag.
The following fields are required:
.path()
-
-
-
-