类class
agentscope.permissionPermissionBehavior
class PermissionBehavior(Enum)
源码Source
agentscope/permission/_types.py:88–102权限的行为。位于 agentscope.permission 包,继承自 Enum。
The behavior of permission. Declared in agentscope.permission. Extends Enum.
属性摘要Attribute Summary
| 属性Attribute | 类型Type | 说明Description | 值Value |
|---|---|---|---|
ALLOW | — | ALLOW字段。 Allow the operation | 'allow' |
DENY | — | 拒绝字段。 Deny the operation | 'deny' |
ASK | — | ASK字段。 Ask the user for permission | 'ask' |
PASSTHROUGH | — | PASSTHROUGH字段。 Let the permission engine continue with rule matching
(used by tools to defer decision to the engine) | 'passthrough' |
属性详情Attribute Detail
ALLOW
= 'allow'ALLOW字段。
Allow the operation
源码Source
agentscope/permission/_types.py:99DENY
= 'deny'拒绝字段。
Deny the operation
源码Source
agentscope/permission/_types.py:100ASK
= 'ask'ASK字段。
Ask the user for permission
源码Source
agentscope/permission/_types.py:101PASSTHROUGH
= 'passthrough'PASSTHROUGH字段。
Let the permission engine continue with rule matching (used by tools to defer decision to the engine)
源码Source
agentscope/permission/_types.py:102