PlanModeView
public record PlanModeView( String sessionId, boolean planActive, String currentPlanFile, boolean planMiddlewareEnabled)
io/agentscope/spring/boot/admin/dto/PlanModeView.java:29–43承载计划模式 View数据的记录类型。位于 io.agentscope.spring.boot.admin.dto 包。核心成员包括 sessionId、planActive、currentPlanFile、planMiddlewareEnabled、of。
Wire view of PlanModeContextState, plus a server-side flag indicating whether the
PlanModeMiddleware was wired into the agent at build time.
planMiddlewareEnabled=false means toggling planActive only flips the
AgentState flag — the read-only enforcement chain is absent because the agent was built without
Builder.enablePlanMode(). Useful diagnostic when a write somehow slipped through during
"plan mode".
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
sessionId | String | 执行会话标识相关操作。 Performs the session id operation. |
planActive | boolean | 执行 `planActive` 方法。 Performs the plan active operation. |
currentPlanFile | String | 执行当前计划文件相关操作。 Performs the current plan file operation. |
planMiddlewareEnabled | boolean | 执行计划中间件已启用相关操作。 Performs the plan middleware enabled operation. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public static PlanModeView of(String sessionId, PlanModeContextState state, boolean middlewareEnabled)static | 创建并返回实例。 Creates and returns an instance. |
记录组件详情Record Component Detail
sessionId
String sessionId执行会话标识相关操作。
Performs the session id operation.
io/agentscope/spring/boot/admin/dto/PlanModeView.java:29–43planActive
boolean planActive执行 planActive 方法。
Performs the plan active operation.
io/agentscope/spring/boot/admin/dto/PlanModeView.java:29–43currentPlanFile
String currentPlanFile执行当前计划文件相关操作。
Performs the current plan file operation.
io/agentscope/spring/boot/admin/dto/PlanModeView.java:29–43planMiddlewareEnabled
boolean planMiddlewareEnabled执行计划中间件已启用相关操作。
Performs the plan middleware enabled operation.
io/agentscope/spring/boot/admin/dto/PlanModeView.java:29–43方法详情Method Detail
of
public static PlanModeView of(String sessionId, PlanModeContextState state, boolean middlewareEnabled)
创建并返回实例。
Creates and returns an instance.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
sessionId | String | 会话标识(类型 `String`)。The session id. |
state | PlanModeContextState | 状态对象(类型 `PlanModeContextState`)。The state. |
middlewareEnabled | boolean | 中间件已启用(类型 `boolean`)。The middleware enabled. |
PlanModeViewio/agentscope/spring/boot/admin/dto/PlanModeView.java:35–42