Package com.intellijava.core.model.input
Enum ChatGPTMessage.Role
- All Implemented Interfaces:
Serializable
,Comparable<ChatGPTMessage.Role>
,java.lang.constant.Constable
- Enclosing class:
ChatGPTMessage
Chat input roles.
- Author:
- github.com/Barqawiz
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ChatGPTMessage.Role
Returns the enum constant of this type with the specified name.static ChatGPTMessage.Role[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
system
system role defines the chat mode or theme. -
user
user role defines the end user message or query. -
assistant
assistant role defines the chatbot response.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-