记录类的使用
io.agentscope.core.permission.PermissionRule
使用PermissionRule的程序包
程序包
说明
Tool-permission evaluation engine for AgentScope Java.
-
io.agentscope.core.event中PermissionRule的使用
返回变量类型为PermissionRule的类型的io.agentscope.core.event中的方法修饰符和类型方法说明ConfirmResult.getRules()New permission rules to register with the engine whenConfirmResult.confirmedis true.类型变量类型为PermissionRule的io.agentscope.core.event中的构造器参数 -
io.agentscope.core.permission中PermissionRule的使用
返回变量类型为PermissionRule的类型的io.agentscope.core.permission中的方法修饰符和类型方法说明PermissionContextState.getAllowRules()PermissionEngine.getAllowRules()Read-only view of the engine's current allow-rule table.PermissionContextState.getAskRules()PermissionEngine.getAskRules()Read-only view of the engine's current ask-rule table.PermissionContextState.getDenyRules()PermissionEngine.getDenyRules()Read-only view of the engine's current deny-rule table.PermissionDecision.getSuggestedRules()修饰符和类型方法说明PermissionContextState.Builder.addAllowRule(String toolName, PermissionRule rule) PermissionContextState.Builder.addAskRule(String toolName, PermissionRule rule) PermissionContextState.Builder.addDenyRule(String toolName, PermissionRule rule) voidPermissionEngine.addRule(PermissionRule rule) Adds a rule to the engine's internal rule set.类型变量类型为PermissionRule的io.agentscope.core.permission中的方法参数修饰符和类型方法说明PermissionDecision.Builder.suggestedRules(List<PermissionRule> suggestedRules) PermissionDecision.withSuggestedRules(List<PermissionRule> suggestedRules) Returns a copy of this decision with the given suggested rules attached. -
io.agentscope.core.tool中PermissionRule的使用
返回变量类型为PermissionRule的类型的io.agentscope.core.tool中的方法修饰符和类型方法说明ToolBase.generateSuggestions(Map<String, Object> toolInput) Default suggestion: a single tool-name-levelPermissionBehavior.ALLOWrule sourced from"suggested".