MemoryEntity
@Entity @Table( name = "builder_memory", uniqueConstraints = @UniqueConstraint( name = "ux_builder_memory_store_path", columnNames = {"store_id", "path"}), indexes = {@Index(name = "ix_builder_memory_store", columnList = "store_id")}) public class MemoryEntity
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryEntity.java:29–131记忆 Entity,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.builder.web.persistence.jpa 包。核心成员包括 getRowId、setRowId、getMemoryId、setMemoryId、getStoreId、setStoreId。
Path-addressed memory document inside a MemoryStoreEntity.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public MemoryEntity() | 初始化 `MemoryEntity` 实例。 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 String getStoreId() | 获取存储标识。 Returns the store id. |
public void setStoreId(String storeId) | 设置存储标识。 Sets the store id. |
public String getPath() | 获取路径。 Returns the path. |
public void setPath(String path) | 设置路径。 Sets the path. |
public String getContent() | 获取内容。 Returns the content. |
public void setContent(String content) | 设置内容。 Sets the content. |
public int getHeadVersion() | 获取 `getHeadVersion`。 Returns the head version. |
public void setHeadVersion(int headVersion) | 设置 `setHeadVersion`。 Sets the head version. |
public long getCreatedAt() | 获取已创建 At。 Returns the created at. |
public void setCreatedAt(long createdAt) | 设置已创建 At。 Sets the created at. |
public long getUpdatedAt() | 获取已更新 At。 Returns the updated at. |
public void setUpdatedAt(long updatedAt) | 设置已更新 At。 Sets the updated at. |
构造器详情Constructor Detail
MemoryEntity
public MemoryEntity()
初始化 MemoryEntity 实例。
Creates a new instance.
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryEntity.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/MemoryEntity.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/MemoryEntity.java:72–74getMemoryId
public String getMemoryId()
获取记忆标识。
Returns the memory id.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryEntity.java:76–78setMemoryId
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/MemoryEntity.java:80–82getStoreId
public String getStoreId()
获取存储标识。
Returns the store id.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryEntity.java:84–86setStoreId
public void setStoreId(String storeId)
设置存储标识。
Sets the store id.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
storeId | String | 存储标识(类型 `String`)。The store id. |
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryEntity.java:88–90getPath
public String getPath()
获取路径。
Returns the path.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryEntity.java:92–94setPath
public void setPath(String path)
设置路径。
Sets the path.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
path | String | 路径(类型 `String`)。The path. |
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryEntity.java:96–98getContent
public String getContent()
获取内容。
Returns the content.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryEntity.java:100–102setContent
public void setContent(String content)
设置内容。
Sets the content.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
content | String | 内容(类型 `String`)。The content. |
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryEntity.java:104–106getHeadVersion
public int getHeadVersion()
获取 getHeadVersion。
Returns the head version.
int返回数值结果。Returns a numeric result.
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryEntity.java:108–110setHeadVersion
public void setHeadVersion(int headVersion)
设置 setHeadVersion。
Sets the head version.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
headVersion | int | head 版本(类型 `int`)。The head version. |
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryEntity.java:112–114getCreatedAt
public long getCreatedAt()
获取已创建 At。
Returns the created at.
long返回数值结果。Returns a numeric result.
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryEntity.java:116–118setCreatedAt
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/MemoryEntity.java:120–122getUpdatedAt
public long getUpdatedAt()
获取已更新 At。
Returns the updated at.
long返回数值结果。Returns a numeric result.
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryEntity.java:124–126setUpdatedAt
public void setUpdatedAt(long updatedAt)
设置已更新 At。
Sets the updated at.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
updatedAt | long | 已更新 At(类型 `long`)。The updated at. |
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryEntity.java:128–130