Package xyz.felh.openai.chat
Enum Class ChatMessageRole
- All Implemented Interfaces:
Serializable,Comparable<ChatMessageRole>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionvalue()static ChatMessageRoleReturns the enum constant of this class with the specified name.static ChatMessageRole[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SYSTEM
content - Required The contents of the user message. role - Required The role of the messages author, in this case user. -
USER
content - Required The contents of the user message. role - Required The role of the messages author, in this case user. -
ASSISTANT
content - Required The contents of the assistant message. role - Required The role of the messages author, in this case assistant. tool_calls - Optional The tool calls generated by the model, such as function calls. -
TOOL
role - Required The role of the messages author, in this case tool. content - Required The contents of the tool message. tool_call_id - Required Tool call that this message is responding to.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
value
-