AS AgentScopeAPI 手册 / API Reference

PlanModeTools

public final class PlanModeTools
源码Source 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 an ASK self-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_ENTER
staticfinal
String
计划 ENTER字段。
Tool names that `PlanModeMiddleware` always allows, even in plan mode.
PLAN_WRITE
staticfinal
String
计划写入字段。
The PLAN WRITE field.
PLAN_EXIT
staticfinal
String
计划 EXIT字段。
The PLAN EXIT field.

字段详情Field Detail

PLAN_ENTER

public static final String PLAN_ENTER
staticfinal

计划 ENTER字段。声明为 public static final String PLAN_ENTER。

Tool names that PlanModeMiddleware always allows, even in plan mode.

源码Source io/agentscope/harness/agent/tool/PlanModeTools.java:49

PLAN_WRITE

public static final String PLAN_WRITE
staticfinal

计划写入字段。声明为 public static final String PLAN_WRITE。

The PLAN WRITE field.

源码Source io/agentscope/harness/agent/tool/PlanModeTools.java:51

PLAN_EXIT

public static final String PLAN_EXIT
staticfinal

计划 EXIT字段。声明为 public static final String PLAN_EXIT。

The PLAN EXIT field.

源码Source 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.

基于官方固定版本源码静态生成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.