Class ResponseComputerToolCall.Action.Click
-
- All Implemented Interfaces:
public final class ResponseComputerToolCall.Action.Click
A click action.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ResponseComputerToolCall.Action.Click.Builder
A builder for Click.
public final class
ResponseComputerToolCall.Action.Click.Button
Indicates which mouse button was pressed during the click. One of
left
,right
,wheel
,back
, orforward
.
-
Method Summary
Modifier and Type Method Description final ResponseComputerToolCall.Action.Click.Button
button()
Indicates which mouse button was pressed during the click. final JsonValue
_type()
Specifies the event type. final Long
x()
The x-coordinate where the click occurred. final Long
y()
The y-coordinate where the click occurred. final JsonField<ResponseComputerToolCall.Action.Click.Button>
_button()
Returns the raw JSON value of button. final JsonField<Long>
_x()
Returns the raw JSON value of x. final JsonField<Long>
_y()
Returns the raw JSON value of y. final Map<String, JsonValue>
_additionalProperties()
final ResponseComputerToolCall.Action.Click.Builder
toBuilder()
final ResponseComputerToolCall.Action.Click
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ResponseComputerToolCall.Action.Click.Builder
builder()
Returns a mutable builder for constructing an instance of Click. -
-
Method Detail
-
button
final ResponseComputerToolCall.Action.Click.Button button()
Indicates which mouse button was pressed during the click. One of
left
,right
,wheel
,back
, orforward
.
-
_type
final JsonValue _type()
Specifies the event type. For a click action, this property is always set to
click
.Expected to always return the following:
JsonValue.from("click")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_button
final JsonField<ResponseComputerToolCall.Action.Click.Button> _button()
Returns the raw JSON value of button.
Unlike button, this method doesn't throw if the JSON field has an unexpected type.
-
_x
final JsonField<Long> _x()
Returns the raw JSON value of x.
Unlike x, this method doesn't throw if the JSON field has an unexpected type.
-
_y
final JsonField<Long> _y()
Returns the raw JSON value of y.
Unlike y, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseComputerToolCall.Action.Click.Builder toBuilder()
-
validate
final ResponseComputerToolCall.Action.Click validate()
-
builder
final static ResponseComputerToolCall.Action.Click.Builder builder()
Returns a mutable builder for constructing an instance of Click.
The following fields are required:
.button() .x() .y()
-
-
-
-