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:45IN_PROGRESS
IN_PROGRESS("in_progress")
staticfinal
执行IN PROGRESS相关操作。
Performs the IN PROGRESS operation.
源码Source
io/agentscope/core/state/Task.java:46COMPLETED
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.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/state/Task.java:55–58fromWire
public static State fromWire(String wire)
static
设置该参数。
Performs the from wire operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
wire | String | wire(类型 `String`)。The wire. |
State返回状态。Returns state.
源码Source
io/agentscope/core/state/Task.java:60–71