MemoryVersionEntity
@Entity @Table( name = "builder_memory_version", uniqueConstraints = @UniqueConstraint( name = "ux_builder_memory_version", columnNames = {"memory_id", "version"}), indexes = {@Index(name = "ix_builder_memory_version_memory", columnList = "memory_id")}) public class MemoryVersionEntity
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryVersionEntity.java:29–98记忆版本 Entity,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.builder.web.persistence.jpa 包。核心成员包括 getRowId、setRowId、getMemoryId、setMemoryId、getVersion、setVersion。
Immutable version of a memory document for audit / point-in-time recovery.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public MemoryVersionEntity() | 初始化 `MemoryVersionEntity` 实例。 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 getMemoryId() | 获取记忆标识。 Returns the memory id. |
public void setMemoryId(String memoryId) | 设置记忆标识。 Sets the memory id. |
public int getVersion() | 获取版本。 Returns the version. |
public void setVersion(int version) | 设置版本。 Sets the version. |
public String getContent() | 获取内容。 Returns the content. |
public void setContent(String content) | 设置内容。 Sets the content. |
public long getCreatedAt() | 获取已创建 At。 Returns the created at. |
public void setCreatedAt(long createdAt) | 设置已创建 At。 Sets the created at. |
构造器详情Constructor Detail
MemoryVersionEntity
public MemoryVersionEntity()
初始化 MemoryVersionEntity 实例。
Creates a new instance.
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryVersionEntity.java:57方法详情Method Detail
getRowId
public Long getRowId()
获取 getRowId。
Returns the row id.
Long返回数值结果。Returns a numeric result.
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryVersionEntity.java:59–61setRowId
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/MemoryVersionEntity.java:63–65getMemoryId
public String getMemoryId()
获取记忆标识。
Returns the memory id.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryVersionEntity.java:67–69setMemoryId
public void setMemoryId(String memoryId)
设置记忆标识。
Sets the memory id.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
memoryId | String | 记忆标识(类型 `String`)。The memory id. |
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryVersionEntity.java:71–73getVersion
public int getVersion()
获取版本。
Returns the version.
int返回数值结果。Returns a numeric result.
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryVersionEntity.java:75–77setVersion
public void setVersion(int version)
设置版本。
Sets the version.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
version | int | 版本(类型 `int`)。The version. |
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryVersionEntity.java:79–81getContent
public String getContent()
获取内容。
Returns the content.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryVersionEntity.java:83–85setContent
public void setContent(String content)
设置内容。
Sets the content.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
content | String | 内容(类型 `String`)。The content. |
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryVersionEntity.java:87–89getCreatedAt
public long getCreatedAt()
获取已创建 At。
Returns the created at.
long返回数值结果。Returns a numeric result.
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryVersionEntity.java:91–93setCreatedAt
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/MemoryVersionEntity.java:95–97