class

OpenAI::EvalItem

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. Messages with the assistant role are presumed to have been generated by the model in previous interactions.

Constructors

new(role : EvalItemRole = EvalItemRole::User, content : EvalItemContent = EvalItemContentItem.new, type_value : EvalItemType | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

content
Source
content=(content : EvalItemContent)
Source
role

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

Source
role=(role : EvalItemRole)

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

Source
type_value

The type of the message input. Always message.

Source
type_value=(type_value : EvalItemType | Nil)

The type of the message input. Always message.

Source