Package akka.javasdk.agent.task
Enum Class TaskStatus
- All Implemented Interfaces:
Serializable,Comparable<TaskStatus>,Constable
The lifecycle status of a
Task.
PENDING, ASSIGNED, IN_PROGRESS, and RESULT_REJECTED are
non-terminal. COMPLETED, FAILED, and CANCELLED are terminal.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAssigned to an agent but not yet started.Terminated before execution began, for example by a dependency failure.Finished successfully with a typed result.Failed during execution, either by the model's decision or because the iteration limit was reached.An agent is actively working on it.Created but not yet assigned to an agent.ATaskRulerejected the result. -
Method Summary
Modifier and TypeMethodDescriptionstatic TaskStatusReturns the enum constant of this class with the specified name.static TaskStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PENDING
Created but not yet assigned to an agent. -
ASSIGNED
Assigned to an agent but not yet started. -
IN_PROGRESS
An agent is actively working on it. -
RESULT_REJECTED
ATaskRulerejected the result. The agent retries on the next iteration. -
COMPLETED
Finished successfully with a typed result. -
FAILED
Failed during execution, either by the model's decision or because the iteration limit was reached. -
CANCELLED
Terminated before execution began, for example by a dependency failure.
-
-
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
-