Enum ChatStatus
- All Implemented Interfaces:
Serializable, Comparable<ChatStatus>, java.lang.constant.Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA normal API call is in progress (e.g., waiting for a model response).The model has finished processing and is waiting for the user's next input.The assistant has hit the maximum number of retries and has stopped.Local tool (function) execution is in progress.An API error occurred, and the system is in retry mode with exponential backoff. -
Method Summary
Modifier and TypeMethodDescriptiontoString()static ChatStatusReturns the enum constant of this type with the specified name.static ChatStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
API_CALL_IN_PROGRESS
A normal API call is in progress (e.g., waiting for a model response). -
TOOL_EXECUTION_IN_PROGRESS
Local tool (function) execution is in progress. -
WAITING_WITH_BACKOFF
An API error occurred, and the system is in retry mode with exponential backoff. -
MAX_RETRIES_REACHED
The assistant has hit the maximum number of retries and has stopped. -
IDLE_WAITING_FOR_USER
The model has finished processing and is waiting for the user's next input.
-
-
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
-
toString
- Overrides:
toStringin classEnum<ChatStatus>
-
