class

OpenAI::KeyPressAction

Inherits JSON::Serializable < Reference < Object

A collection of keypresses the model would like to perform.

Constructors

new(type_value : KeyPressActionType = KeyPressActionType::Keypress, keys : Array(String) = [] of String)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

keys

The combination of keys the model is requesting to be pressed. This is an array of strings, each representing a key.

Source
keys=(keys : Array(String))

The combination of keys the model is requesting to be pressed. This is an array of strings, each representing a key.

Source
type_value

Specifies the event type. For a keypress action, this property is always set to keypress.

Source
type_value=(type_value : KeyPressActionType)

Specifies the event type. For a keypress action, this property is always set to keypress.

Source