Enum Class TaskState
- 所有已实现的接口:
Serializable,Comparable<TaskState>,Constable
Enumeration of possible states for a task in the A2A protocol lifecycle.
This enum defines all valid states that a task can be in during its execution,
from initial submission through completion or termination. The states follow
a logical progression and help clients understand the current status of their
requests.
State transitions typically follow this pattern:
SUBMITTED → WORKING → (INPUT_REQUIRED ↔ WORKING) → COMPLETED/FAILED/CANCELED
Special states like REJECTED, AUTH_REQUIRED, and UNKNOWN handle exceptional
cases in the task lifecycle.
-
嵌套类概要
从类继承的嵌套类/接口 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
枚举常量概要
枚举常量枚举常量说明Task requires authentication before it can proceed.Task was canceled by client request or system intervention.Task has been successfully completed.Task execution failed due to an error.Task execution is paused, waiting for additional input from the client.Task was rejected by the agent (e.g., invalid parameters, unsupported operation).Task has been submitted but not yet started processing.Task state is unknown or could not be determined.Task is currently being processed by the agent. -
方法概要
-
枚举常量详细资料
-
SUBMITTED
Task has been submitted but not yet started processing. -
WORKING
Task is currently being processed by the agent. -
INPUT_REQUIRED
Task execution is paused, waiting for additional input from the client. -
COMPLETED
Task has been successfully completed. -
FAILED
Task execution failed due to an error. -
CANCELED
Task was canceled by client request or system intervention. -
REJECTED
Task was rejected by the agent (e.g., invalid parameters, unsupported operation). -
AUTH_REQUIRED
Task requires authentication before it can proceed. -
UNKNOWN
Task state is unknown or could not be determined.
-
-
方法详细资料
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- 返回:
- 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.)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- 如果参数为空值
-
getValue
-
fromValue
-