class

OpenAI::EasyInputMessage

Inherits JSON::Serializable < Reference < Object

A message input to the model with a role indicating instruction following hierarchy. Instructions given with the developer or system role take precedence over instructions given with the user role. Messages with the assistant role are presumed to have been generated by the model in previous interactions.

Constructors

new(role : EasyInputMessageRole = EasyInputMessageRole::User, content : EasyInputMessageContent = "", type_value : EasyInputMessageType | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

content

Text, image, or audio input to the model, used to generate a response. Can also contain previous assistant responses.

Source
content=(content : EasyInputMessageContent)

Text, image, or audio input to the model, used to generate a response. Can also contain previous assistant responses.

Source
role

The role of the message input. One of user, assistant, system, or developer.

Source
role=(role : EasyInputMessageRole)

The role of the message input. One of user, assistant, system, or developer.

Source
type_value

The type of the message input. Always message.

Source
type_value=(type_value : EasyInputMessageType | Nil)

The type of the message input. Always message.

Source