class

OpenAI::InputMessage

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.

Constructors

new(type_value : InputMessageType | Nil = nil, role : InputMessageRole = InputMessageRole::User, status : InputMessageStatus | Nil = nil, content : InputMessageContentList = InputMessageContentList.new)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

content
Source
content=(content : InputMessageContentList)
Source
role

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

Source
role=(role : InputMessageRole)

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

Source
status

The status of item. One of in_progress, completed, or incomplete. Populated when items are returned via API.

Source
status=(status : InputMessageStatus | Nil)

The status of item. One of in_progress, completed, or incomplete. Populated when items are returned via API.

Source
type_value

The type of the message input. Always set to message.

Source
type_value=(type_value : InputMessageType | Nil)

The type of the message input. Always set to message.

Source