Package io.dapr.client.domain
Enum ConversationMessageRole
- All Implemented Interfaces:
Serializable,Comparable<ConversationMessageRole>
Enum representing the different roles a conversation message can have.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAssistant message containing responses from the AI model.Developer message for development and debugging purposes.System message that sets the behavior or context for the conversation.Tool message containing results from function/tool calls.User message containing input from the human user. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConversationMessageRoleReturns the enum constant of this type with the specified name.static ConversationMessageRole[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SYSTEM
System message that sets the behavior or context for the conversation. -
USER
User message containing input from the human user. -
ASSISTANT
Assistant message containing responses from the AI model. -
TOOL
Tool message containing results from function/tool calls. -
DEVELOPER
Developer message for development and debugging purposes.
-
-
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
-