Class PlanModeTools.PlanExitTool

java.lang.Object
io.agentscope.core.tool.ToolBase
io.agentscope.harness.agent.tool.PlanModeTools.PlanExitTool
All Implemented Interfaces:
io.agentscope.core.tool.AgentTool
Enclosing class:
PlanModeTools

public static final class PlanModeTools.PlanExitTool extends io.agentscope.core.tool.ToolBase
plan_exit: request approval, then leave plan mode for BUILD.
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.agentscope.core.tool.ToolBase

    io.agentscope.core.tool.ToolBase.Builder
  • Field Summary

    Fields inherited from class io.agentscope.core.tool.ToolBase

    dangerousDirectories, dangerousFiles
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    reactor.core.publisher.Mono<io.agentscope.core.message.ToolResultBlock>
    callAsync(io.agentscope.core.tool.ToolCallParam param)
    Runs only after the user approves the ASK above.
    reactor.core.publisher.Mono<io.agentscope.core.permission.PermissionDecision>
    checkPermissions(Map<String,Object> toolInput, io.agentscope.core.permission.PermissionContextState context)
    Always ASK: leaving plan mode is a deliberate hand-off that the user confirms.

    Methods inherited from class io.agentscope.core.tool.ToolBase

    builder, generateSuggestions, getDescription, getMcpName, getName, getParameters, isConcurrencySafe, isDangerousPath, isExternalTool, isMcp, isReadOnly, isReturnDirect, isStateInjected, matchRule

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.agentscope.core.tool.AgentTool

    getOutputSchema, getStrict
  • Constructor Details

  • Method Details

    • checkPermissions

      public reactor.core.publisher.Mono<io.agentscope.core.permission.PermissionDecision> checkPermissions(Map<String,Object> toolInput, io.agentscope.core.permission.PermissionContextState context)
      Always ASK: leaving plan mode is a deliberate hand-off that the user confirms. The lightweight permission path honours an explicit ASK self-check even when no permission rules are configured, so this works out of the box.
      Overrides:
      checkPermissions in class io.agentscope.core.tool.ToolBase
    • callAsync

      public reactor.core.publisher.Mono<io.agentscope.core.message.ToolResultBlock> callAsync(io.agentscope.core.tool.ToolCallParam param)
      Runs only after the user approves the ASK above.
      Specified by:
      callAsync in interface io.agentscope.core.tool.AgentTool
      Overrides:
      callAsync in class io.agentscope.core.tool.ToolBase