AS AgentScopeAPI 手册 / API Reference

PlanModeView

public record PlanModeView( String sessionId, boolean planActive, String currentPlanFile, boolean planMiddlewareEnabled)
源码Source 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
sessionIdString
执行会话标识相关操作。
Performs the session id operation.
planActiveboolean
执行 `planActive` 方法。
Performs the plan active operation.
currentPlanFileString
执行当前计划文件相关操作。
Performs the current plan file operation.
planMiddlewareEnabledboolean
执行计划中间件已启用相关操作。
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.

源码Source io/agentscope/spring/boot/admin/dto/PlanModeView.java:29–43

planActive

boolean planActive

执行 planActive 方法。

Performs the plan active operation.

源码Source io/agentscope/spring/boot/admin/dto/PlanModeView.java:29–43

currentPlanFile

String currentPlanFile

执行当前计划文件相关操作。

Performs the current plan file operation.

源码Source io/agentscope/spring/boot/admin/dto/PlanModeView.java:29–43

planMiddlewareEnabled

boolean planMiddlewareEnabled

执行计划中间件已启用相关操作。

Performs the plan middleware enabled operation.

源码Source io/agentscope/spring/boot/admin/dto/PlanModeView.java:29–43

方法详情Method Detail

of

public static PlanModeView of(String sessionId, PlanModeContextState state, boolean middlewareEnabled)
static

创建并返回实例。

Creates and returns an instance.

参数Parameters
名称Name类型Type说明Description
sessionIdString会话标识(类型 `String`)。The session id.
statePlanModeContextState状态对象(类型 `PlanModeContextState`)。The state.
middlewareEnabledboolean中间件已启用(类型 `boolean`)。The middleware enabled.
返回Returns PlanModeView
返回PlanModeView。Returns plan mode view.
源码Source io/agentscope/spring/boot/admin/dto/PlanModeView.java:35–42
基于官方固定版本源码静态生成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.