Package io.agentscope.harness.agent.tool
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 -
Method Summary
Modifier and TypeMethodDescriptionreactor.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, matchRuleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.agentscope.core.tool.AgentTool
getOutputSchema, getStrict
-
Constructor Details
-
PlanExitTool
-
-
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:
checkPermissionsin classio.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:
callAsyncin interfaceio.agentscope.core.tool.AgentTool- Overrides:
callAsyncin classio.agentscope.core.tool.ToolBase
-