class

OpenAI::ChatCompletionRequestUserMessage

Inherits JSON::Serializable < Reference < Object

Messages sent by an end user, containing prompts or additional context information.

Constructors

new(content : ChatCompletionRequestUserMessageContent = "", role : ChatCompletionRequestUserMessageRole = ChatCompletionRequestUserMessageRole::User, name : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

content

The contents of the user message.

Source
content=(content : ChatCompletionRequestUserMessageContent)

The contents of the user message.

Source
name

An optional name for the participant. Provides the model information to differentiate between participants of the same role.

Source
name=(name : String | Nil)

An optional name for the participant. Provides the model information to differentiate between participants of the same role.

Source
role

The role of the messages author, in this case user.

Source
role=(role : ChatCompletionRequestUserMessageRole)

The role of the messages author, in this case user.

Source