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.
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.
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.
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.)