PlanModeTools
public final class PlanModeTools
io/agentscope/harness/agent/tool/PlanModeTools.java:46–211计划模式工具,封装可被智能体调用的能力。位于 io.agentscope.harness.agent.tool 包。核心成员包括 PLAN_ENTER、PLAN_WRITE、PLAN_EXIT。
The three model-facing tools that drive plan mode, all backed by a shared PlanModeManager.
-
plan_enter— switch into read-only plan mode to investigate and design before touching anything. -
plan_write— create / overwrite the plan markdown blueprint (allowed in plan mode). -
plan_exit— request to leave plan mode and start executing. Gated by anASKself-check, so the user confirms the plan (via the existing permission HITL flow) before the agent regains write access.
plan_enter / plan_write / plan_exit are always permitted by
PlanModeMiddleware; every other mutating tool is denied while plan mode is active.
嵌套类摘要Nested Class Summary
| 类Class | 类型Kind | 说明Description |
|---|---|---|
PlanEnterTool | 类class | 计划 Enter 工具,封装可被智能体调用的能力。 `plan_enter`: enter read-only plan mode. |
PlanWriteTool | 类class | 计划写入工具,封装可被智能体调用的能力。 `plan_write`: create / overwrite the plan markdown file. |
PlanExitTool | 类class | 计划 Exit 工具,封装可被智能体调用的能力。 `plan_exit`: request approval, then leave plan mode for BUILD. |
字段摘要Field Summary
| 字段Field | 类型Type | 说明Description |
|---|---|---|
PLAN_ENTERstaticfinal | String | 计划 ENTER字段。 Tool names that `PlanModeMiddleware` always allows, even in plan mode. |
PLAN_WRITEstaticfinal | String | 计划写入字段。 The PLAN WRITE field. |
PLAN_EXITstaticfinal | String | 计划 EXIT字段。 The PLAN EXIT field. |
字段详情Field Detail
PLAN_ENTER
public static final String PLAN_ENTER
计划 ENTER字段。声明为 public static final String PLAN_ENTER。
Tool names that PlanModeMiddleware always allows, even in plan mode.
io/agentscope/harness/agent/tool/PlanModeTools.java:49PLAN_WRITE
public static final String PLAN_WRITE
计划写入字段。声明为 public static final String PLAN_WRITE。
The PLAN WRITE field.
io/agentscope/harness/agent/tool/PlanModeTools.java:51PLAN_EXIT
public static final String PLAN_EXIT
计划 EXIT字段。声明为 public static final String PLAN_EXIT。
The PLAN EXIT field.
io/agentscope/harness/agent/tool/PlanModeTools.java:52嵌套类详情Nested Class Detail
PlanEnterTool
public static final class PlanEnterTool extends ToolBase计划 Enter 工具,封装可被智能体调用的能力。位于 io.agentscope.harness.agent.tool 包,继承自 ToolBase。核心成员包括 callAsync、PlanEnterTool。
plan_enter: enter read-only plan mode.
PlanWriteTool
public static final class PlanWriteTool extends ToolBase计划写入工具,封装可被智能体调用的能力。位于 io.agentscope.harness.agent.tool 包,继承自 ToolBase。核心成员包括 callAsync、PlanWriteTool。
plan_write: create / overwrite the plan markdown file.
PlanExitTool
public static final class PlanExitTool extends ToolBase计划 Exit 工具,封装可被智能体调用的能力。位于 io.agentscope.harness.agent.tool 包,继承自 ToolBase。核心成员包括 checkPermissions、callAsync、PlanExitTool。
plan_exit: request approval, then leave plan mode for BUILD.