Enum ChatGPTMessage.Role

java.lang.Object
java.lang.Enum<ChatGPTMessage.Role>
com.intellijava.core.model.input.ChatGPTMessage.Role
All Implemented Interfaces:
Serializable, Comparable<ChatGPTMessage.Role>, java.lang.constant.Constable
Enclosing class:
ChatGPTMessage

public static enum ChatGPTMessage.Role extends Enum<ChatGPTMessage.Role>
Chat input roles.
Author:
github.com/Barqawiz
  • Enum Constant Details

    • system

      public static final ChatGPTMessage.Role system
      system role defines the chat mode or theme.
    • user

      public static final ChatGPTMessage.Role user
      user role defines the end user message or query.
    • assistant

      public static final ChatGPTMessage.Role assistant
      assistant role defines the chatbot response.
  • Method Details

    • values

      public static ChatGPTMessage.Role[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ChatGPTMessage.Role valueOf(String name)
      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.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null