类class
agentscope.app.accessResourcePermission
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:44EDIT
= 'edit'EDIT字段。
The EDIT field.
源码Source
agentscope/app/access/_policy.py:47