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(pull : JSON::PullParser)
Sourcenew(type_value : InputMessageType | Nil = nil, role : InputMessageRole = InputMessageRole::User, status : InputMessageStatus | Nil = nil, content : InputMessageContentList = InputMessageContentList.new)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
content
Sourcecontent=(content : InputMessageContentList)
Sourcerole=(role : InputMessageRole)
The role of the message input. One of user, system, or developer.
status
The status of item. One of in_progress, completed, or
incomplete. Populated when items are returned via API.
status=(status : InputMessageStatus | Nil)
The status of item. One of in_progress, completed, or
incomplete. Populated when items are returned via API.
type_value=(type_value : InputMessageType | Nil)
The type of the message input. Always set to message.