enum

LLM::CLI::Chat::Role

Inherits Enum / Comparable / Value / Object

Constants

User = 0

Can be generated by the end users of an application, or set by a developer as an instruction.

System = 1

The system message helps set the behavior of the assistant. GPT 3 does not always pay strong attention to system messages

Assistant = 2

The assistant messages help store prior responses. They can also be written by a developer to help give examples of desired behavior.

Instance methods

assistant?

Returns true if this enum value equals Assistant

Source
system?

Returns true if this enum value equals System

Source
user?

Returns true if this enum value equals User

Source