Enum Class TurnType

java.lang.Object
java.lang.Enum<TurnType>
com.tnsai.session.TurnType
All Implemented Interfaces:
Serializable, Comparable<TurnType>, Constable

public enum TurnType extends Enum<TurnType>
Types of conversation turns.
Author:
TnsAI Team
  • Enum Constant Details

    • USER_MESSAGE

      public static final TurnType USER_MESSAGE
      A message from the user.
    • ASSISTANT_MESSAGE

      public static final TurnType ASSISTANT_MESSAGE
      A response from the assistant.
    • SYSTEM_MESSAGE

      public static final TurnType SYSTEM_MESSAGE
      A system message or instruction.
    • TOOL_CALL

      public static final TurnType TOOL_CALL
      A tool/function call by the assistant.
    • TOOL_RESULT

      public static final TurnType TOOL_RESULT
      The result of a tool execution.
    • ERROR

      public static final TurnType ERROR
      An error that occurred during the conversation.
    • CHECKPOINT

      public static final TurnType CHECKPOINT
      A checkpoint or state snapshot.
    • THINKING

      public static final TurnType THINKING
      A thinking/reasoning step (for Chain-of-Thought).
  • Method Details

    • values

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

      public static TurnType valueOf(String name)
      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 name
      NullPointerException - if the argument is null