Package com.openai.models.responses
Class ResponseComputerToolCall.Action.Keypress
-
- All Implemented Interfaces:
public final class ResponseComputerToolCall.Action.Keypress
A collection of keypresses the model would like to perform.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ResponseComputerToolCall.Action.Keypress.Builder
A builder for Keypress.
-
Method Summary
Modifier and Type Method Description final List<String>
keys()
The combination of keys the model is requesting to be pressed. final JsonValue
_type()
Specifies the event type. final JsonField<List<String>>
_keys()
Returns the raw JSON value of keys. final Map<String, JsonValue>
_additionalProperties()
final ResponseComputerToolCall.Action.Keypress
validate()
final ResponseComputerToolCall.Action.Keypress.Builder
toBuilder()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ResponseComputerToolCall.Action.Keypress.Builder
builder()
Returns a mutable builder for constructing an instance of Keypress. -
-
Method Detail
-
keys
final List<String> keys()
The combination of keys the model is requesting to be pressed. This is an array of strings, each representing a key.
-
_type
final JsonValue _type()
Specifies the event type. For a keypress action, this property is always set to
keypress
.Expected to always return the following:
JsonValue.from("keypress")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_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()
-
validate
final ResponseComputerToolCall.Action.Keypress validate()
-
toBuilder
final ResponseComputerToolCall.Action.Keypress.Builder toBuilder()
-
builder
final static ResponseComputerToolCall.Action.Keypress.Builder builder()
Returns a mutable builder for constructing an instance of Keypress.
The following fields are required:
.keys()
-
-
-
-