AS AgentScopeAPI 手册 / API Reference
类class agentscope.app.access

ResourcePermission

class ResourcePermission(StrEnum)
源码Source agentscope/app/access/_policy.py:32–48

资源权限,把智能体接入外部消息渠道与企业平台。位于 agentscope.app.access 包,继承自 StrEnum。

Values: READ: The viewer can see and use the resource. Credentials remain masked in API responses and can only be used by runtime code. EDIT: The viewer can read/use the resource and also mutate it. This is equivalent to co-owner access for the specific resource.

EDIT implies READ.

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
READ—
读取字段。
'read'
EDIT—
EDIT字段。
'edit'

属性详情Attribute Detail

READ

 = 'read'

读取字段。

The READ field.

源码Source agentscope/app/access/_policy.py:44

EDIT

 = 'edit'

EDIT字段。

The EDIT field.

源码Source agentscope/app/access/_policy.py:47
基于官方固定版本源码静态生成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.