Package dyntabs.ai.event
Enum Class EasyAIEvent.Phase
- All Implemented Interfaces:
Serializable,Comparable<EasyAIEvent.Phase>,Constable
- Enclosing class:
EasyAIEvent
Which moment in an operation's lifecycle an event marks.
Analogy: the stages of a delivery — "dispatched" (STARTED), "out for delivery" (PROGRESS), "attempting delivery" (STEP_STARTED), "delivered" (STEP/RESULT), "redelivery" (RETRY), "completed" (FINISHED), "failed" (ERROR).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe operation failed.The operation finished successfully.Incremental progress within a longer operation (e.g.A meaningful intermediate or final result was produced.A failed attempt is being retried (e.g. malformed JSON during extraction).The operation has begun.A discrete unit of work just completed (e.g. a tool returned).A discrete unit of work is about to run (e.g. a tool call is being dispatched). -
Method Summary
Modifier and TypeMethodDescriptionstatic EasyAIEvent.PhaseReturns the enum constant of this class with the specified name.static EasyAIEvent.Phase[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STARTED
The operation has begun. Usually paired withEasyAIEvent.Status.RUNNING. -
STEP_STARTED
A discrete unit of work is about to run (e.g. a tool call is being dispatched). Lets a UI show a spinning "running" row before the result arrives. -
STEP
A discrete unit of work just completed (e.g. a tool returned). -
PROGRESS
Incremental progress within a longer operation (e.g. "document 7 of 200"). -
RESULT
A meaningful intermediate or final result was produced. -
RETRY
A failed attempt is being retried (e.g. malformed JSON during extraction). -
FINISHED
The operation finished successfully. -
ERROR
The operation failed. Usually paired withEasyAIEvent.Status.ERROR.
-
-
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
-