AS AgentScopeAPI 手册 / API Reference

MemoryStoreEntity

@Entity @Table( name = "builder_memory_store", uniqueConstraints = @UniqueConstraint( name = "ux_builder_memory_store_owner_name", columnNames = {"owner_id", "name"}), indexes = {@Index(name = "ix_builder_memory_store_owner", columnList = "owner_id")}) public class MemoryStoreEntity
源码Source io/agentscope/builder/web/persistence/jpa/MemoryStoreEntity.java:29–120

记忆存储 Entity,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.builder.web.persistence.jpa 包。核心成员包括 getRowId、setRowId、getStoreId、setStoreId、getOwnerId、setOwnerId。

Cross-session memory store (mounted into a session sandbox as a directory).

构造器摘要Constructor Summary

构造器Constructor说明Description
public MemoryStoreEntity()
初始化 `MemoryStoreEntity` 实例。
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 getStoreId()
获取存储标识。
Returns the store id.
public void setStoreId(String storeId)
设置存储标识。
Sets the store id.
public String getOwnerId()
获取所有者标识。
Returns the owner id.
public void setOwnerId(String ownerId)
设置所有者标识。
Sets the owner id.
public String getName()
获取名称。
Returns the name.
public void setName(String name)
设置名称。
Sets the name.
public String getDescription()
获取 `getDescription`。
Returns the description.
public void setDescription(String description)
设置 `setDescription`。
Sets the description.
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

MemoryStoreEntity

public MemoryStoreEntity()

初始化 MemoryStoreEntity 实例。

Creates a new instance.

源码Source io/agentscope/builder/web/persistence/jpa/MemoryStoreEntity.java:63

方法详情Method Detail

getRowId

public Long getRowId()

获取 getRowId。

Returns the row id.

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

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/MemoryStoreEntity.java:69–71

getStoreId

public String getStoreId()

获取存储标识。

Returns the store id.

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

setStoreId

public void setStoreId(String storeId)

设置存储标识。

Sets the store id.

参数Parameters
名称Name类型Type说明Description
storeIdString存储标识(类型 `String`)。The store id.
源码Source io/agentscope/builder/web/persistence/jpa/MemoryStoreEntity.java:77–79

getOwnerId

public String getOwnerId()

获取所有者标识。

Returns the owner id.

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

setOwnerId

public void setOwnerId(String ownerId)

设置所有者标识。

Sets the owner id.

参数Parameters
名称Name类型Type说明Description
ownerIdString所有者标识(类型 `String`)。The owner id.
源码Source io/agentscope/builder/web/persistence/jpa/MemoryStoreEntity.java:85–87

getName

public String getName()

获取名称。

Returns the name.

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

setName

public void setName(String name)

设置名称。

Sets the name.

参数Parameters
名称Name类型Type说明Description
nameString名称(类型 `String`)。The name.
源码Source io/agentscope/builder/web/persistence/jpa/MemoryStoreEntity.java:93–95

getDescription

public String getDescription()

获取 getDescription。

Returns the description.

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

setDescription

public void setDescription(String description)

设置 setDescription。

Sets the description.

参数Parameters
名称Name类型Type说明Description
descriptionString描述(类型 `String`)。The description.
源码Source io/agentscope/builder/web/persistence/jpa/MemoryStoreEntity.java:101–103

getCreatedAt

public long getCreatedAt()

获取已创建 At。

Returns the created at.

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

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/MemoryStoreEntity.java:109–111

getUpdatedAt

public long getUpdatedAt()

获取已更新 At。

Returns the updated at.

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

setUpdatedAt

public void setUpdatedAt(long updatedAt)

设置已更新 At。

Sets the updated at.

参数Parameters
名称Name类型Type说明Description
updatedAtlong已更新 At(类型 `long`)。The updated at.
源码Source io/agentscope/builder/web/persistence/jpa/MemoryStoreEntity.java:117–119
基于官方固定版本源码静态生成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.