AS AgentScopeAPI 手册 / API Reference

ShareRequest

public record ShareRequest(String granteeType, String granteeId, String tier)
源码Source io/agentscope/builder/web/share/ShareRequest.java:28

承载 Share 请求数据的记录类型。位于 io.agentscope.builder.web.share 包。核心成员包括 granteeType、granteeId、tier。

Request body for granting a ResourceAccessService share on a non-agent managed resource (environment / memory store / vault).

记录组件摘要Record Component Summary

组件Component类型Type说明Description
granteeTypeString
执行 `granteeType` 方法。
`AgentShareGrant#GRANTEE_USER` or `AgentShareGrant#GRANTEE_WORKSPACE`
granteeIdString
执行 `granteeId` 方法。
the target user id, or `AgentShareGrant#WORKSPACE_ID` for a workspace grant
tierString
执行 `tier` 方法。
one of `CLONE`, `RUN`, `EDIT` (see `AgentAclService.Tier`)

记录组件详情Record Component Detail

granteeType

String granteeType

执行 granteeType 方法。

AgentShareGrant#GRANTEE_USER or AgentShareGrant#GRANTEE_WORKSPACE

源码Source io/agentscope/builder/web/share/ShareRequest.java:28

granteeId

String granteeId

执行 granteeId 方法。

the target user id, or AgentShareGrant#WORKSPACE_ID for a workspace grant

源码Source io/agentscope/builder/web/share/ShareRequest.java:28

tier

String tier

执行 tier 方法。

one of CLONE, RUN, EDIT (see AgentAclService.Tier)

源码Source io/agentscope/builder/web/share/ShareRequest.java:28
基于官方固定版本源码静态生成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.