TaskStatus
public enum TaskStatus
源码Source
io/agentscope/harness/agent/subagent/task/TaskStatus.java:22–36定义任务状态的枚举。位于 io.agentscope.harness.agent.subagent.task 包。核心成员包括 isTerminal、PENDING、RUNNING、COMPLETED、FAILED、CANCELLED。
Lifecycle status of a background subagent task. Terminal statuses (#isTerminal()) will
never change, so status checks can be skipped for finished tasks.
枚举常量摘要Enum Constant Summary
| 常量Constant | 说明Description |
|---|---|
PENDING | 执行待处理相关操作。 Performs the PENDING operation. |
RUNNING | 运行NING。 Runs the NING. |
COMPLETED | 执行已完成相关操作。 Performs the COMPLETED operation. |
FAILED | 执行失败相关操作。 Performs the FAILED operation. |
CANCELLED | 判断是否可以CELLED。 Returns whether the CELLED. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public boolean isTerminal() | 判断是否 `isTerminal`。 Whether this status represents a final state that will never change. |
枚举常量详情Enum Constant Detail
PENDING
PENDING
staticfinal
执行待处理相关操作。
Performs the PENDING operation.
源码Source
io/agentscope/harness/agent/subagent/task/TaskStatus.java:23RUNNING
RUNNING
staticfinal
运行NING。
Runs the NING.
源码Source
io/agentscope/harness/agent/subagent/task/TaskStatus.java:24COMPLETED
COMPLETED
staticfinal
执行已完成相关操作。
Performs the COMPLETED operation.
源码Source
io/agentscope/harness/agent/subagent/task/TaskStatus.java:25FAILED
FAILED
staticfinal
执行失败相关操作。
Performs the FAILED operation.
源码Source
io/agentscope/harness/agent/subagent/task/TaskStatus.java:26CANCELLED
CANCELLED
staticfinal
判断是否可以CELLED。
Returns whether the CELLED.
源码Source
io/agentscope/harness/agent/subagent/task/TaskStatus.java:27方法详情Method Detail
isTerminal
public boolean isTerminal()
判断是否 isTerminal。
Whether this status represents a final state that will never change.
boolean返回布尔值,表示判断结果。Returns a boolean result.
源码Source
io/agentscope/harness/agent/subagent/task/TaskStatus.java:33–35