AgentVersionEntity
@Entity @Table( name = "builder_agent_version", uniqueConstraints = @UniqueConstraint( name = "ux_builder_agent_version", columnNames = {"owner_id", "agent_id", "version"}), indexes = { @Index(name = "ix_builder_agent_version_owner_agent", columnList = "owner_id, agent_id") }) public class AgentVersionEntity
源码Source
io/agentscope/builder/web/persistence/jpa/AgentVersionEntity.java:32–115智能体版本 Entity,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.builder.web.persistence.jpa 包。核心成员包括 getRowId、setRowId、getOwnerId、setOwnerId、getAgentId、setAgentId。
Immutable configuration snapshot for one version of a user-custom agent. Head pointer lives on
AgentEntity#getHeadVersion(); updates create a new row and bump the head.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public AgentVersionEntity() | 初始化 `AgentVersionEntity` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Long getRowId() | 获取 `getRowId`。 Returns the row id. |
public void setRowId(Long rowId) | 设置 `setRowId`。 Sets the row id. |
public String getOwnerId() | 获取所有者标识。 Returns the owner id. |
public void setOwnerId(String ownerId) | 设置所有者标识。 Sets the owner id. |
public String getAgentId() | 获取智能体标识。 Returns the agent id. |
public void setAgentId(String agentId) | 设置智能体标识。 Sets the agent id. |
public int getVersion() | 获取版本。 Returns the version. |
public void setVersion(int version) | 设置版本。 Sets the version. |
public String getSnapshotJson() | 获取快照 JSON。 Returns the snapshot json. |
public void setSnapshotJson(String snapshotJson) | 设置快照 JSON。 Sets the snapshot json. |
public long getCreatedAt() | 获取已创建 At。 Returns the created at. |
public void setCreatedAt(long createdAt) | 设置已创建 At。 Sets the created at. |
构造器详情Constructor Detail
AgentVersionEntity
public AgentVersionEntity()
初始化 AgentVersionEntity 实例。
Creates a new instance.
源码Source
io/agentscope/builder/web/persistence/jpa/AgentVersionEntity.java:66方法详情Method Detail
getRowId
public Long getRowId()
获取 getRowId。
Returns the row id.
Long返回数值结果。Returns a numeric result.
源码Source
io/agentscope/builder/web/persistence/jpa/AgentVersionEntity.java:68–70setRowId
public void setRowId(Long rowId)
设置 setRowId。
Sets the row id.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
rowId | Long | row 标识(类型 `Long`)。The row id. |
源码Source
io/agentscope/builder/web/persistence/jpa/AgentVersionEntity.java:72–74getOwnerId
public String getOwnerId()
获取所有者标识。
Returns the owner id.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/builder/web/persistence/jpa/AgentVersionEntity.java:76–78setOwnerId
public void setOwnerId(String ownerId)
设置所有者标识。
Sets the owner id.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
ownerId | String | 所有者标识(类型 `String`)。The owner id. |
源码Source
io/agentscope/builder/web/persistence/jpa/AgentVersionEntity.java:80–82getAgentId
public String getAgentId()
获取智能体标识。
Returns the agent id.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/builder/web/persistence/jpa/AgentVersionEntity.java:84–86setAgentId
public void setAgentId(String agentId)
设置智能体标识。
Sets the agent id.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
agentId | String | 智能体标识(类型 `String`)。The agent id. |
源码Source
io/agentscope/builder/web/persistence/jpa/AgentVersionEntity.java:88–90getVersion
public int getVersion()
获取版本。
Returns the version.
int返回数值结果。Returns a numeric result.
源码Source
io/agentscope/builder/web/persistence/jpa/AgentVersionEntity.java:92–94setVersion
public void setVersion(int version)
设置版本。
Sets the version.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
version | int | 版本(类型 `int`)。The version. |
源码Source
io/agentscope/builder/web/persistence/jpa/AgentVersionEntity.java:96–98getSnapshotJson
public String getSnapshotJson()
获取快照 JSON。
Returns the snapshot json.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/builder/web/persistence/jpa/AgentVersionEntity.java:100–102setSnapshotJson
public void setSnapshotJson(String snapshotJson)
设置快照 JSON。
Sets the snapshot json.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
snapshotJson | String | 快照 JSON(类型 `String`)。The snapshot json. |
源码Source
io/agentscope/builder/web/persistence/jpa/AgentVersionEntity.java:104–106getCreatedAt
public long getCreatedAt()
获取已创建 At。
Returns the created at.
long返回数值结果。Returns a numeric result.
源码Source
io/agentscope/builder/web/persistence/jpa/AgentVersionEntity.java:108–110setCreatedAt
public void setCreatedAt(long createdAt)
设置已创建 At。
Sets the created at.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
createdAt | long | 已创建 At(类型 `long`)。The created at. |
源码Source
io/agentscope/builder/web/persistence/jpa/AgentVersionEntity.java:112–114