Package io.agentscope.harness.agent.tool
Class PlanModeTools
java.lang.Object
io.agentscope.harness.agent.tool.PlanModeTools
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
Nested ClassesModifier and TypeClassDescriptionstatic final classplan_enter: enter read-only plan mode.static final classplan_exit: request approval, then leave plan mode for BUILD.static final classplan_write: create / overwrite the plan markdown file. -
Field Summary
Fields -
Method Summary
-
Field Details
-
PLAN_ENTER
Tool names thatPlanModeMiddlewarealways allows, even in plan mode.- See Also:
-
PLAN_WRITE
- See Also:
-
PLAN_EXIT
- See Also:
-