AS AgentScopeAPI 手册 / API Reference

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.

返回Returns List<MemoryDto>
返回列出。Returns list.
源码Source io/agentscope/builder/web/managed/MemoryDocumentStore.java:23

get

public MemoryDto get(String path)

按条件读取数据。

Performs the get operation.

参数Parameters
名称Name类型Type说明Description
pathString路径(类型 `String`)。The path.
返回Returns MemoryDto
返回MemoryDto。Returns memory dto.
源码Source io/agentscope/builder/web/managed/MemoryDocumentStore.java:25

put

public void put(String path, String content, Integer expectedVersion)

执行 put 方法。

Performs the put operation.

参数Parameters
名称Name类型Type说明Description
pathString路径(类型 `String`)。The path.
contentString内容(类型 `String`)。The content.
expectedVersionIntegerexpected 版本(类型 `Integer`)。The expected version.
源码Source io/agentscope/builder/web/managed/MemoryDocumentStore.java:27

delete

public void delete(String path)

删除数据。

Performs the delete operation.

参数Parameters
名称Name类型Type说明Description
pathString路径(类型 `String`)。The path.
源码Source io/agentscope/builder/web/managed/MemoryDocumentStore.java:29
基于官方固定版本源码静态生成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.