Enum Class GenerationState
- All Implemented Interfaces:
Serializable,Comparable<GenerationState>,Constable
Generation state of an
AiMessageList as a whole.
IDLE— no active generation; all messages are complete.GENERATING— a response is being produced; the last assistant message is the active (generating) one.ERROR— the last generation failed; the list shows the error banner with a retry action.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe last generation failed; the list shows the error banner with a retry action.A response is being produced; the last assistant message is the active (generating) one.No active generation; all messages are complete. -
Method Summary
Modifier and TypeMethodDescriptionstatic GenerationStateReturns the enum constant of this class with the specified name.static GenerationState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IDLE
No active generation; all messages are complete. -
GENERATING
A response is being produced; the last assistant message is the active (generating) one. -
ERROR
The last generation failed; the list shows the error banner with a retry action.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-