AS AgentScopeAPI 手册 / API Reference

AgentShareGrant

@JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnoreProperties(ignoreUnknown = true) public record AgentShareGrant( String granteeType, String granteeId, String tier, long createdAt, String createdBy)
源码Source io/agentscope/builder/web/share/AgentShareGrant.java:38–50

承载智能体 Share Grant数据的记录类型。位于 io.agentscope.builder.web.share 包。核心成员包括 granteeType、granteeId、tier、createdAt、createdBy、GRANTEE_USER。

A single sharing grant on an agent.

Two dimensions:

  • Who — a specific user (granteeType=USER, granteeId=<userId>) or every logged-in user in this install (granteeType=WORKSPACE, granteeId="*").

  • What — a tier (CLONE, RUN, or EDIT). Tiers are inclusive: EDIT > RUN > CLONE, so a RUN grant implies CLONE.

Grants live on the agent definition (see io.agentscope.builder.web.catalog.AgentDefinition#shares()) and are evaluated by AgentAclService. The createdAt/createdBy fields exist for the activity log; they are never used in permission decisions.

记录组件摘要Record Component Summary

组件Component类型Type说明Description
granteeTypeString
执行 `granteeType` 方法。
Performs the grantee type operation.
granteeIdString
执行 `granteeId` 方法。
Performs the grantee id operation.
tierString
执行 `tier` 方法。
Performs the tier operation.
createdAtlong
执行已创建 At相关操作。
Performs the created at operation.
createdByString
执行已创建通过相关操作。
Performs the created by operation.

字段摘要Field Summary

字段Field类型Type说明Description
GRANTEE_USER
staticfinal
String
GRANTEE 用户字段。
The GRANTEE USER field.
GRANTEE_WORKSPACE
staticfinal
String
GRANTEE 工作区字段。
The GRANTEE WORKSPACE field.
WORKSPACE_ID
staticfinal
String
工作区标识字段。
The WORKSPACE ID field.
TIER_CLONE
staticfinal
String
TIER CLONE字段。
The TIER CLONE field.
TIER_RUN
staticfinal
String
TIER 运行字段。
The TIER RUN field.
TIER_EDIT
staticfinal
String
TIER EDIT字段。
The TIER EDIT field.

记录组件详情Record Component Detail

granteeType

String granteeType

执行 granteeType 方法。

Performs the grantee type operation.

源码Source io/agentscope/builder/web/share/AgentShareGrant.java:38–50

granteeId

String granteeId

执行 granteeId 方法。

Performs the grantee id operation.

源码Source io/agentscope/builder/web/share/AgentShareGrant.java:38–50

tier

String tier

执行 tier 方法。

Performs the tier operation.

源码Source io/agentscope/builder/web/share/AgentShareGrant.java:38–50

createdAt

long createdAt

执行已创建 At相关操作。

Performs the created at operation.

源码Source io/agentscope/builder/web/share/AgentShareGrant.java:38–50

createdBy

String createdBy

执行已创建通过相关操作。

Performs the created by operation.

源码Source io/agentscope/builder/web/share/AgentShareGrant.java:38–50

字段详情Field Detail

GRANTEE_USER

public static final String GRANTEE_USER
staticfinal

GRANTEE 用户字段。声明为 public static final String GRANTEE_USER。

The GRANTEE USER field.

源码Source io/agentscope/builder/web/share/AgentShareGrant.java:43

GRANTEE_WORKSPACE

public static final String GRANTEE_WORKSPACE
staticfinal

GRANTEE 工作区字段。声明为 public static final String GRANTEE_WORKSPACE。

The GRANTEE WORKSPACE field.

源码Source io/agentscope/builder/web/share/AgentShareGrant.java:44

WORKSPACE_ID

public static final String WORKSPACE_ID
staticfinal

工作区标识字段。声明为 public static final String WORKSPACE_ID。

The WORKSPACE ID field.

源码Source io/agentscope/builder/web/share/AgentShareGrant.java:45

TIER_CLONE

public static final String TIER_CLONE
staticfinal

TIER CLONE字段。声明为 public static final String TIER_CLONE。

The TIER CLONE field.

源码Source io/agentscope/builder/web/share/AgentShareGrant.java:47

TIER_RUN

public static final String TIER_RUN
staticfinal

TIER 运行字段。声明为 public static final String TIER_RUN。

The TIER RUN field.

源码Source io/agentscope/builder/web/share/AgentShareGrant.java:48

TIER_EDIT

public static final String TIER_EDIT
staticfinal

TIER EDIT字段。声明为 public static final String TIER_EDIT。

The TIER EDIT field.

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