OpenAI::CreateMessageRequest
Inherits JSON::Serializable < Reference < Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(role : CreateMessageRequestRole = CreateMessageRequestRole::User, content : CreateMessageRequestContent = "", attachments : CreateMessageRequestAttachments | Nil = nil, metadata : Metadata | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
attachments
Sourceattachments=(attachments : CreateMessageRequestAttachments | Nil)
Sourcecontent
Sourcecontent=(content : CreateMessageRequestContent)
Sourcemetadata
Sourcemetadata=(metadata : Metadata | Nil)
Sourcerole
The role of the entity that is creating the message. Allowed values include:
user: Indicates the message is sent by an actual user and should be used in most cases to represent user-generated messages.assistant: Indicates the message is generated by the assistant. Use this value to insert messages from the assistant into the conversation.
role=(role : CreateMessageRequestRole)
The role of the entity that is creating the message. Allowed values include:
user: Indicates the message is sent by an actual user and should be used in most cases to represent user-generated messages.assistant: Indicates the message is generated by the assistant. Use this value to insert messages from the assistant into the conversation.