OpenAI::ChatCompletionRequestUserMessage
Inherits JSON::Serializable < Reference < Object
Messages sent by an end user, containing prompts or additional context information.
Constructors
new(pull : JSON::PullParser)
Sourcenew(content : ChatCompletionRequestUserMessageContent = "", role : ChatCompletionRequestUserMessageRole = ChatCompletionRequestUserMessageRole::User, name : String | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
name
An optional name for the participant. Provides the model information to differentiate between participants of the same role.
An optional name for the participant. Provides the model information to differentiate between participants of the same role.
role=(role : ChatCompletionRequestUserMessageRole)
The role of the messages author, in this case user.