AS AgentScopeAPI 手册 / API Reference

State

public enum State
源码Source io/agentscope/core/state/Task.java:44–72

用于#state的已允许值。位于 io.agentscope.core.state 包。核心成员包括 getWire、fromWire、PENDING、IN_PROGRESS、COMPLETED。

Allowed values for #state.

枚举常量摘要Enum Constant Summary

常量Constant说明Description
PENDING
执行待处理相关操作。
Performs the PENDING operation.
IN_PROGRESS
执行IN PROGRESS相关操作。
Performs the IN PROGRESS operation.
COMPLETED
执行已完成相关操作。
Performs the COMPLETED operation.

方法摘要Method Summary

方法Method说明Description
public String getWire()
获取 `getWire`。
Returns the wire.
public static State fromWire(String wire)
static
设置该参数。
Performs the from wire operation.

枚举常量详情Enum Constant Detail

PENDING

PENDING("pending")
staticfinal

执行待处理相关操作。

Performs the PENDING operation.

源码Source io/agentscope/core/state/Task.java:45

IN_PROGRESS

IN_PROGRESS("in_progress")
staticfinal

执行IN PROGRESS相关操作。

Performs the IN PROGRESS operation.

源码Source io/agentscope/core/state/Task.java:46

COMPLETED

COMPLETED("completed")
staticfinal

执行已完成相关操作。

Performs the COMPLETED operation.

源码Source io/agentscope/core/state/Task.java:47

方法详情Method Detail

getWire

public String getWire()

获取 getWire。

Returns the wire.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/state/Task.java:55–58

fromWire

public static State fromWire(String wire)
static

设置该参数。

Performs the from wire operation.

参数Parameters
名称Name类型Type说明Description
wireStringwire(类型 `String`)。The wire.
返回Returns State
返回状态。Returns state.
源码Source io/agentscope/core/state/Task.java:60–71
基于官方固定版本源码静态生成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.