ChatUser

ChatGPT's biggest innovation is its conversational memory. To remember the conversation, we need to map each message to who sent it. This enum stores the 3 possible users.

Entries

Link copied to clipboard

Before the conversation between the USER and the ASSISTANT starts, there is a SYSTEM message to "prime" the AI. System messages are almost like a script given to the AI to follow throughout the entire conversation. In other words, system messages help the AI "get in the mood" for the conversation.

Link copied to clipboard

USER is the human that is asking the questions. After a message from the user, you should lock the conversation until ASSISTANT replies to the user's message.

Link copied to clipboard

ASSISTANT is the AI that generates responses.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun valueOf(value: String): ChatUser

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.

Properties

Link copied to clipboard
Link copied to clipboard