OpenAI::KeyPressAction
Inherits JSON::Serializable < Reference < Object
A collection of keypresses the model would like to perform.
Constructors
new(pull : JSON::PullParser)
Sourcenew(type_value : KeyPressActionType = KeyPressActionType::Keypress, keys : Array(String) = [] of String)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
keys
The combination of keys the model is requesting to be pressed. This is an array of strings, each representing a key.
The combination of keys the model is requesting to be pressed. This is an array of strings, each representing a key.
type_value
Specifies the event type. For a keypress action, this property is always set to keypress.
type_value=(type_value : KeyPressActionType)
Specifies the event type. For a keypress action, this property is always set to keypress.