AS AgentScopeAPI 手册 / API Reference

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.

返回Returns Long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/MemoryVersionEntity.java:59–61

setRowId

public void setRowId(Long rowId)

设置 setRowId。

Sets the row id.

参数Parameters
名称Name类型Type说明Description
rowIdLongrow 标识(类型 `Long`)。The row id.
源码Source io/agentscope/builder/web/persistence/jpa/MemoryVersionEntity.java:63–65

getMemoryId

public String getMemoryId()

获取记忆标识。

Returns the memory id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/MemoryVersionEntity.java:67–69

setMemoryId

public void setMemoryId(String memoryId)

设置记忆标识。

Sets the memory id.

参数Parameters
名称Name类型Type说明Description
memoryIdString记忆标识(类型 `String`)。The memory id.
源码Source io/agentscope/builder/web/persistence/jpa/MemoryVersionEntity.java:71–73

getVersion

public int getVersion()

获取版本。

Returns the version.

返回Returns int
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/MemoryVersionEntity.java:75–77

setVersion

public void setVersion(int version)

设置版本。

Sets the version.

参数Parameters
名称Name类型Type说明Description
versionint版本(类型 `int`)。The version.
源码Source io/agentscope/builder/web/persistence/jpa/MemoryVersionEntity.java:79–81

getContent

public String getContent()

获取内容。

Returns the content.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/MemoryVersionEntity.java:83–85

setContent

public void setContent(String content)

设置内容。

Sets the content.

参数Parameters
名称Name类型Type说明Description
contentString内容(类型 `String`)。The content.
源码Source io/agentscope/builder/web/persistence/jpa/MemoryVersionEntity.java:87–89

getCreatedAt

public long getCreatedAt()

获取已创建 At。

Returns the created at.

返回Returns long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/MemoryVersionEntity.java:91–93

setCreatedAt

public void setCreatedAt(long createdAt)

设置已创建 At。

Sets the created at.

参数Parameters
名称Name类型Type说明Description
createdAtlong已创建 At(类型 `long`)。The created at.
源码Source io/agentscope/builder/web/persistence/jpa/MemoryVersionEntity.java:95–97
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.