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(pull : JSON::PullParser)
Sourcenew(role : EvalItemRole = EvalItemRole::User, content : EvalItemContent = EvalItemContentItem.new, type_value : EvalItemType | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
content
Sourcecontent=(content : EvalItemContent)
Sourcerole=(role : EvalItemRole)
The role of the message input. One of user, assistant, system, or
developer.