SessionStatuses
public final class SessionStatuses
io/agentscope/builder/web/managed/SessionStatuses.java:29–53会话 Statuses,承载智能体的部署、调度与服务化运行。位于 io.agentscope.builder.web.managed 包。核心成员包括 isRuntimeStatus、isLifecycleStatus、CREATED、RUNNING、IDLE、REQUIRES_ACTION。
Shared session status vocabulary.
Ownership across planes:
-
Lifecycle states (
#CREATED,#ARCHIVED,#TERMINATED) — control plane -
Runtime states (
#RUNNING,#IDLE,#REQUIRES_ACTION,#RESCHEDULED) — data plane
字段摘要Field Summary
| 字段Field | 类型Type | 说明Description |
|---|---|---|
CREATEDstaticfinal | String | 已创建字段。 The CREATED field. |
RUNNINGstaticfinal | String | 运行中字段。 The RUNNING field. |
IDLEstaticfinal | String | IDLE字段。 The IDLE field. |
REQUIRES_ACTIONstaticfinal | String | REQUIRES 动作字段。 The REQUIRES ACTION field. |
TERMINATEDstaticfinal | String | TERMINATED字段。 The TERMINATED field. |
RESCHEDULEDstaticfinal | String | RESCHEDULED字段。 The RESCHEDULED field. |
ARCHIVEDstaticfinal | String | ARCHIVED字段。 The ARCHIVED field. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public static boolean isRuntimeStatus(String status)static | 判断是否运行时状态。 Runtime statuses that only the data plane should write. |
public static boolean isLifecycleStatus(String status)static | 判断是否生命周期状态。 Lifecycle statuses that only the control plane should write. |
字段详情Field Detail
CREATED
public static final String CREATED
已创建字段。声明为 public static final String CREATED。
The CREATED field.
io/agentscope/builder/web/managed/SessionStatuses.java:33RUNNING
public static final String RUNNING
运行中字段。声明为 public static final String RUNNING。
The RUNNING field.
io/agentscope/builder/web/managed/SessionStatuses.java:34IDLE
public static final String IDLE
IDLE字段。声明为 public static final String IDLE。
The IDLE field.
io/agentscope/builder/web/managed/SessionStatuses.java:35REQUIRES_ACTION
public static final String REQUIRES_ACTION
REQUIRES 动作字段。声明为 public static final String REQUIRES_ACTION。
The REQUIRES ACTION field.
io/agentscope/builder/web/managed/SessionStatuses.java:36TERMINATED
public static final String TERMINATED
TERMINATED字段。声明为 public static final String TERMINATED。
The TERMINATED field.
io/agentscope/builder/web/managed/SessionStatuses.java:37RESCHEDULED
public static final String RESCHEDULED
RESCHEDULED字段。声明为 public static final String RESCHEDULED。
The RESCHEDULED field.
io/agentscope/builder/web/managed/SessionStatuses.java:38ARCHIVED
public static final String ARCHIVED
ARCHIVED字段。声明为 public static final String ARCHIVED。
The ARCHIVED field.
io/agentscope/builder/web/managed/SessionStatuses.java:39方法详情Method Detail
isRuntimeStatus
public static boolean isRuntimeStatus(String status)
判断是否运行时状态。
Runtime statuses that only the data plane should write.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
status | String | 状态(类型 `String`)。The status. |
booleanio/agentscope/builder/web/managed/SessionStatuses.java:42–47isLifecycleStatus
public static boolean isLifecycleStatus(String status)
判断是否生命周期状态。
Lifecycle statuses that only the control plane should write.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
status | String | 状态(类型 `String`)。The status. |
booleanio/agentscope/builder/web/managed/SessionStatuses.java:50–52