类的使用
io.agentscope.core.permission.PermissionDecision
使用PermissionDecision的程序包
程序包
说明
Tool-permission evaluation engine for AgentScope Java.
-
io.agentscope.core.permission中PermissionDecision的使用
修饰符和类型方法说明static PermissionDecisionstatic PermissionDecisionPermissionDecision.Builder.build()static PermissionDecisionstatic PermissionDecisionPermissionDecision.passthrough(String message) PermissionDecision.withSuggestedRules(List<PermissionRule> suggestedRules) Returns a copy of this decision with the given suggested rules attached.返回变量类型为PermissionDecision的类型的io.agentscope.core.permission中的方法修饰符和类型方法说明reactor.core.publisher.Mono<PermissionDecision> PermissionEngine.checkPermission(ToolBase tool, Map<String, Object> toolInput) Resolves a permission decision for the given tool invocation. -
io.agentscope.core.tool中PermissionDecision的使用
返回变量类型为PermissionDecision的类型的io.agentscope.core.tool中的方法修饰符和类型方法说明reactor.core.publisher.Mono<PermissionDecision> ToolBase.checkPermissions(Map<String, Object> toolInput, PermissionContextState context) Tool self-check invoked by the permission engine whenallowRules/askRulesneither allow nor reject the call outright. -
io.agentscope.core.tool.mcp中PermissionDecision的使用
返回变量类型为PermissionDecision的类型的io.agentscope.core.tool.mcp中的方法修饰符和类型方法说明reactor.core.publisher.Mono<PermissionDecision> McpTool.checkPermissions(Map<String, Object> toolInput, PermissionContextState context)