AS AgentScopeAPI 手册 / API Reference
类class agentscope.permission

PermissionBehavior

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:99

DENY

 = 'deny'

拒绝字段。

Deny the operation

源码Source agentscope/permission/_types.py:100

ASK

 = 'ask'

ASK字段。

Ask the user for permission

源码Source agentscope/permission/_types.py:101

PASSTHROUGH

 = '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
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.