AgentShareGrant
@JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnoreProperties(ignoreUnknown = true) public record AgentShareGrant( String granteeType, String granteeId, String tier, long createdAt, String createdBy)
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, orEDIT). Tiers are inclusive:EDIT > RUN > CLONE, so aRUNgrant impliesCLONE.
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 |
|---|---|---|
granteeType | String | 执行 `granteeType` 方法。 Performs the grantee type operation. |
granteeId | String | 执行 `granteeId` 方法。 Performs the grantee id operation. |
tier | String | 执行 `tier` 方法。 Performs the tier operation. |
createdAt | long | 执行已创建 At相关操作。 Performs the created at operation. |
createdBy | String | 执行已创建通过相关操作。 Performs the created by operation. |
字段摘要Field Summary
| 字段Field | 类型Type | 说明Description |
|---|---|---|
GRANTEE_USERstaticfinal | String | GRANTEE 用户字段。 The GRANTEE USER field. |
GRANTEE_WORKSPACEstaticfinal | String | GRANTEE 工作区字段。 The GRANTEE WORKSPACE field. |
WORKSPACE_IDstaticfinal | String | 工作区标识字段。 The WORKSPACE ID field. |
TIER_CLONEstaticfinal | String | TIER CLONE字段。 The TIER CLONE field. |
TIER_RUNstaticfinal | String | TIER 运行字段。 The TIER RUN field. |
TIER_EDITstaticfinal | String | TIER EDIT字段。 The TIER EDIT field. |
记录组件详情Record Component Detail
granteeType
String granteeType执行 granteeType 方法。
Performs the grantee type operation.
io/agentscope/builder/web/share/AgentShareGrant.java:38–50granteeId
String granteeId执行 granteeId 方法。
Performs the grantee id operation.
io/agentscope/builder/web/share/AgentShareGrant.java:38–50tier
String tier执行 tier 方法。
Performs the tier operation.
io/agentscope/builder/web/share/AgentShareGrant.java:38–50createdAt
long createdAt执行已创建 At相关操作。
Performs the created at operation.
io/agentscope/builder/web/share/AgentShareGrant.java:38–50createdBy
String createdBy执行已创建通过相关操作。
Performs the created by operation.
io/agentscope/builder/web/share/AgentShareGrant.java:38–50字段详情Field Detail
GRANTEE_USER
public static final String GRANTEE_USER
GRANTEE 用户字段。声明为 public static final String GRANTEE_USER。
The GRANTEE USER field.
io/agentscope/builder/web/share/AgentShareGrant.java:43GRANTEE_WORKSPACE
public static final String GRANTEE_WORKSPACE
GRANTEE 工作区字段。声明为 public static final String GRANTEE_WORKSPACE。
The GRANTEE WORKSPACE field.
io/agentscope/builder/web/share/AgentShareGrant.java:44WORKSPACE_ID
public static final String WORKSPACE_ID
工作区标识字段。声明为 public static final String WORKSPACE_ID。
The WORKSPACE ID field.
io/agentscope/builder/web/share/AgentShareGrant.java:45TIER_CLONE
public static final String TIER_CLONE
TIER CLONE字段。声明为 public static final String TIER_CLONE。
The TIER CLONE field.
io/agentscope/builder/web/share/AgentShareGrant.java:47TIER_RUN
public static final String TIER_RUN
TIER 运行字段。声明为 public static final String TIER_RUN。
The TIER RUN field.
io/agentscope/builder/web/share/AgentShareGrant.java:48TIER_EDIT
public static final String TIER_EDIT
TIER EDIT字段。声明为 public static final String TIER_EDIT。
The TIER EDIT field.
io/agentscope/builder/web/share/AgentShareGrant.java:49