MemoryDocumentStore
public interface MemoryDocumentStore
源码Source
io/agentscope/builder/web/managed/MemoryDocumentStore.java:22–30定义记忆文档存储契约的接口。位于 io.agentscope.builder.web.managed 包。核心成员包括 list、get、put、delete。
Live document access, scoped to one authorized session mount.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public List<MemoryDto> list() | 返回列表。 Returns the list. |
public MemoryDto get(String path) | 按条件读取数据。 Performs the get operation. |
public void put(String path, String content, Integer expectedVersion) | 执行 `put` 方法。 Performs the put operation. |
public void delete(String path) | 删除数据。 Performs the delete operation. |
方法详情Method Detail
list
public List<MemoryDto> list()
返回列表。
Returns the list.
List<MemoryDto>返回列出。Returns list.
源码Source
io/agentscope/builder/web/managed/MemoryDocumentStore.java:23get
public MemoryDto get(String path)
按条件读取数据。
Performs the get operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
path | String | 路径(类型 `String`)。The path. |
MemoryDto返回MemoryDto。Returns memory dto.
源码Source
io/agentscope/builder/web/managed/MemoryDocumentStore.java:25put
public void put(String path, String content, Integer expectedVersion)
执行 put 方法。
Performs the put operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
path | String | 路径(类型 `String`)。The path. |
content | String | 内容(类型 `String`)。The content. |
expectedVersion | Integer | expected 版本(类型 `Integer`)。The expected version. |
源码Source
io/agentscope/builder/web/managed/MemoryDocumentStore.java:27delete
public void delete(String path)
删除数据。
Performs the delete operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
path | String | 路径(类型 `String`)。The path. |
源码Source
io/agentscope/builder/web/managed/MemoryDocumentStore.java:29