Enum ConversationMessageRole

java.lang.Object
java.lang.Enum<ConversationMessageRole>
io.dapr.client.domain.ConversationMessageRole
All Implemented Interfaces:
Serializable, Comparable<ConversationMessageRole>

public enum ConversationMessageRole extends Enum<ConversationMessageRole>
Enum representing the different roles a conversation message can have.
  • Enum Constant Details

    • SYSTEM

      public static final ConversationMessageRole SYSTEM
      System message that sets the behavior or context for the conversation.
    • USER

      public static final ConversationMessageRole USER
      User message containing input from the human user.
    • ASSISTANT

      public static final ConversationMessageRole ASSISTANT
      Assistant message containing responses from the AI model.
    • TOOL

      public static final ConversationMessageRole TOOL
      Tool message containing results from function/tool calls.
    • DEVELOPER

      public static final ConversationMessageRole DEVELOPER
      Developer message for development and debugging purposes.
  • Method Details

    • values

      public static ConversationMessageRole[] 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 ConversationMessageRole 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