类 PlanModeContextState

java.lang.Object
io.agentscope.core.state.PlanModeContextState

public final class PlanModeContextState extends Object
Persisted plan-mode flag for an agent.

Plan mode is a read-only "design first" phase: while planActive is true, the PlanModeMiddleware denies mutating tool calls so the agent can investigate and draft a plan without changing anything. currentPlanFile is the workspace-relative path of the markdown blueprint the agent is editing (if any).

This lives inside AgentState (rather than in volatile in-process memory) precisely because agentscope agents are distributed and resumable: a plan-mode session must survive process restarts and hand-offs across nodes. Toggling the flag and persisting the AgentState is therefore the canonical way to switch modes dynamically at runtime.

  • 构造器详细资料

    • PlanModeContextState

      public PlanModeContextState()
    • PlanModeContextState

      public PlanModeContextState(boolean planActive, String currentPlanFile)
  • 方法详细资料

    • isPlanActive

      public boolean isPlanActive()
    • setPlanActive

      public void setPlanActive(boolean planActive)
    • getCurrentPlanFile

      public String getCurrentPlanFile()
    • setCurrentPlanFile

      public void setCurrentPlanFile(String currentPlanFile)
    • equals

      public boolean equals(Object o)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object