类 PermissionDecision
java.lang.Object
io.agentscope.core.permission.PermissionDecision
Decision returned by a permission rule match or a tool self-check.
A decision carries the PermissionBehavior together with a human-readable message and
optional fields used by the engine (rewritten inputs, suggested follow-up rules).
-
嵌套类概要
嵌套类 -
方法概要
修饰符和类型方法说明static PermissionDecisionstatic PermissionDecisionstatic PermissionDecision.Builderbuilder()static PermissionDecisionbooleaninthashCode()static PermissionDecisionpassthrough(String message) toString()withSuggestedRules(List<PermissionRule> suggestedRules) Returns a copy of this decision with the given suggested rules attached.
-
方法详细资料
-
getBehavior
-
getMessage
-
getDecisionReason
-
getUpdatedInput
-
getSuggestedRules
-
allow
-
deny
-
ask
-
passthrough
-
withSuggestedRules
Returns a copy of this decision with the given suggested rules attached.- 参数:
suggestedRules- the rules to attach; may be null to clear- 返回:
- a new
PermissionDecisionwith all other fields preserved
-
builder
-
equals
-
hashCode
public int hashCode() -
toString
-