Enum ChatStatus

java.lang.Object
java.lang.Enum<ChatStatus>
uno.anahata.ai.status.ChatStatus
All Implemented Interfaces:
Serializable, Comparable<ChatStatus>, java.lang.constant.Constable

public enum ChatStatus extends Enum<ChatStatus>
Defines the possible operational states of a Chat session.

These states are primarily used to provide real-time feedback to the user interface, indicating what the assistant is currently doing.

  • Enum Constant Details

    • API_CALL_IN_PROGRESS

      public static final ChatStatus API_CALL_IN_PROGRESS
      A normal API call is in progress (e.g., waiting for a model response).
    • TOOL_EXECUTION_IN_PROGRESS

      public static final ChatStatus TOOL_EXECUTION_IN_PROGRESS
      Local tool (function) execution is in progress.
    • WAITING_WITH_BACKOFF

      public static final ChatStatus WAITING_WITH_BACKOFF
      An API error occurred, and the system is in retry mode with exponential backoff.
    • MAX_RETRIES_REACHED

      public static final ChatStatus MAX_RETRIES_REACHED
      The assistant has hit the maximum number of retries and has stopped.
    • IDLE_WAITING_FOR_USER

      public static final ChatStatus IDLE_WAITING_FOR_USER
      The model has finished processing and is waiting for the user's next input.
  • Method Details

    • values

      public static ChatStatus[] 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 ChatStatus 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ChatStatus>