AgentShareEntity
@Entity @Table( name = "builder_agent_share", indexes = {@Index(name = "ix_agent_share_grantee", columnList = "grantee_type,grantee_id")}) public class AgentShareEntity
io/agentscope/builder/web/persistence/jpa/AgentShareEntity.java:37–138智能体 Share Entity,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.builder.web.persistence.jpa 包。核心成员包括 getId、getAgent、setAgent、getGranteeType、setGranteeType、getGranteeId。
Persistent representation of one io.agentscope.builder.web.share.AgentShareGrant.
Owned by an AgentEntity via a @ManyToOne relationship with a hard foreign
key. orphanRemoval=true on the owning side ensures that removing a grant from the
agent's collection deletes the row.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public AgentShareEntity() | 初始化 `AgentShareEntity` 实例。 Creates a new instance. |
public AgentShareEntity(AgentEntity agent, String granteeType, String granteeId, String tier, long createdAt, String createdBy) | 初始化 `AgentShareEntity` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Long getId() | 获取标识。 Returns the id. |
public AgentEntity getAgent() | 获取智能体。 Returns the agent. |
public void setAgent(AgentEntity agent) | 设置智能体。 Sets the agent. |
public String getGranteeType() | 获取 `getGranteeType`。 Returns the grantee type. |
public void setGranteeType(String granteeType) | 设置 `setGranteeType`。 Sets the grantee type. |
public String getGranteeId() | 获取 `getGranteeId`。 Returns the grantee id. |
public void setGranteeId(String granteeId) | 设置 `setGranteeId`。 Sets the grantee id. |
public String getTier() | 获取 `getTier`。 Returns the tier. |
public void setTier(String tier) | 设置 `setTier`。 Sets the tier. |
public long getCreatedAt() | 获取已创建 At。 Returns the created at. |
public void setCreatedAt(long createdAt) | 设置已创建 At。 Sets the created at. |
public String getCreatedBy() | 获取已创建通过。 Returns the created by. |
public void setCreatedBy(String createdBy) | 设置已创建通过。 Sets the created by. |
构造器详情Constructor Detail
AgentShareEntity
public AgentShareEntity()
初始化 AgentShareEntity 实例。
Creates a new instance.
io/agentscope/builder/web/persistence/jpa/AgentShareEntity.java:70AgentShareEntity
public AgentShareEntity(AgentEntity agent, String granteeType, String granteeId, String tier, long createdAt, String createdBy)
初始化 AgentShareEntity 实例。
Creates a new instance.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
agent | AgentEntity | 智能体(类型 `AgentEntity`)。The agent. |
granteeType | String | grantee 类型(类型 `String`)。The grantee type. |
granteeId | String | grantee 标识(类型 `String`)。The grantee id. |
tier | String | tier(类型 `String`)。The tier. |
createdAt | long | 已创建 At(类型 `long`)。The created at. |
createdBy | String | 已创建通过(类型 `String`)。The created by. |
io/agentscope/builder/web/persistence/jpa/AgentShareEntity.java:72–85方法详情Method Detail
getId
public Long getId()
获取标识。
Returns the id.
Longio/agentscope/builder/web/persistence/jpa/AgentShareEntity.java:87–89getAgent
public AgentEntity getAgent()
获取智能体。
Returns the agent.
AgentEntityio/agentscope/builder/web/persistence/jpa/AgentShareEntity.java:91–93setAgent
public void setAgent(AgentEntity agent)
设置智能体。
Sets the agent.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
agent | AgentEntity | 智能体(类型 `AgentEntity`)。The agent. |
io/agentscope/builder/web/persistence/jpa/AgentShareEntity.java:95–97getGranteeType
public String getGranteeType()
获取 getGranteeType。
Returns the grantee type.
Stringio/agentscope/builder/web/persistence/jpa/AgentShareEntity.java:99–101setGranteeType
public void setGranteeType(String granteeType)
设置 setGranteeType。
Sets the grantee type.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
granteeType | String | grantee 类型(类型 `String`)。The grantee type. |
io/agentscope/builder/web/persistence/jpa/AgentShareEntity.java:103–105getGranteeId
public String getGranteeId()
获取 getGranteeId。
Returns the grantee id.
Stringio/agentscope/builder/web/persistence/jpa/AgentShareEntity.java:107–109setGranteeId
public void setGranteeId(String granteeId)
设置 setGranteeId。
Sets the grantee id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
granteeId | String | grantee 标识(类型 `String`)。The grantee id. |
io/agentscope/builder/web/persistence/jpa/AgentShareEntity.java:111–113getTier
public String getTier()
获取 getTier。
Returns the tier.
Stringio/agentscope/builder/web/persistence/jpa/AgentShareEntity.java:115–117setTier
public void setTier(String tier)
设置 setTier。
Sets the tier.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
tier | String | tier(类型 `String`)。The tier. |
io/agentscope/builder/web/persistence/jpa/AgentShareEntity.java:119–121getCreatedAt
public long getCreatedAt()
获取已创建 At。
Returns the created at.
longio/agentscope/builder/web/persistence/jpa/AgentShareEntity.java:123–125setCreatedAt
public void setCreatedAt(long createdAt)
设置已创建 At。
Sets the created at.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
createdAt | long | 已创建 At(类型 `long`)。The created at. |
io/agentscope/builder/web/persistence/jpa/AgentShareEntity.java:127–129getCreatedBy
public String getCreatedBy()
获取已创建通过。
Returns the created by.
Stringio/agentscope/builder/web/persistence/jpa/AgentShareEntity.java:131–133setCreatedBy
public void setCreatedBy(String createdBy)
设置已创建通过。
Sets the created by.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
createdBy | String | 已创建通过(类型 `String`)。The created by. |
io/agentscope/builder/web/persistence/jpa/AgentShareEntity.java:135–137