AS AgentScopeAPI 手册 / API Reference

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:23

RUNNING

RUNNING
staticfinal

运行NING。

Runs the NING.

源码Source io/agentscope/harness/agent/subagent/task/TaskStatus.java:24

COMPLETED

COMPLETED
staticfinal

执行已完成相关操作。

Performs the COMPLETED operation.

源码Source io/agentscope/harness/agent/subagent/task/TaskStatus.java:25

FAILED

FAILED
staticfinal

执行失败相关操作。

Performs the FAILED operation.

源码Source io/agentscope/harness/agent/subagent/task/TaskStatus.java:26

CANCELLED

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.

返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/harness/agent/subagent/task/TaskStatus.java:33–35
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.