AS AgentScopeAPI 手册 / API Reference

Metadata

@JsonInclude(JsonInclude.Include.NON_NULL) public static class Metadata
源码Source io/agentscope/core/memory/reme/ReMeAddResponse.java:98–144

元数据,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.core.memory.reme 包。核心成员包括 getMemoryList、setMemoryList、getDeletedMemoryIds、setDeletedMemoryIds、getUpdateResult、setUpdateResult。

Metadata object containing memory list and update results.

方法摘要Method Summary

方法Method说明Description
public List<MemoryItem> getMemoryList()
获取记忆列表。
Returns the memory list.
public void setMemoryList(List<MemoryItem> memoryList)
设置记忆列表。
Sets the memory list.
public List<String> getDeletedMemoryIds()
获取 `getDeletedMemoryIds`。
Returns the deleted memory ids.
public void setDeletedMemoryIds(List<String> deletedMemoryIds)
设置 `setDeletedMemoryIds`。
Sets the deleted memory ids.
public UpdateResult getUpdateResult()
获取更新结果。
Returns the update result.
public void setUpdateResult(UpdateResult updateResult)
设置更新结果。
Sets the update result.
public String toString()
返回 `toString` 结果。
Returns the to string.

方法详情Method Detail

getMemoryList

public List<MemoryItem> getMemoryList()

获取记忆列表。

Returns the memory list.

返回Returns List<MemoryItem>
返回列出。Returns list.
源码Source io/agentscope/core/memory/reme/ReMeAddResponse.java:109–111

setMemoryList

public void setMemoryList(List<MemoryItem> memoryList)

设置记忆列表。

Sets the memory list.

参数Parameters
名称Name类型Type说明Description
memoryListList<MemoryItem>记忆列表(类型 `List`)。The memory list.
源码Source io/agentscope/core/memory/reme/ReMeAddResponse.java:113–115

getDeletedMemoryIds

public List<String> getDeletedMemoryIds()

获取 getDeletedMemoryIds。

Returns the deleted memory ids.

返回Returns List<String>
返回列出。Returns list.
源码Source io/agentscope/core/memory/reme/ReMeAddResponse.java:117–119

setDeletedMemoryIds

public void setDeletedMemoryIds(List<String> deletedMemoryIds)

设置 setDeletedMemoryIds。

Sets the deleted memory ids.

参数Parameters
名称Name类型Type说明Description
deletedMemoryIdsList<String>已删除记忆 Ids(类型 `List`)。The deleted memory ids.
源码Source io/agentscope/core/memory/reme/ReMeAddResponse.java:121–123

getUpdateResult

public UpdateResult getUpdateResult()

获取更新结果。

Returns the update result.

返回Returns UpdateResult
返回UpdateResult。Returns update result.
源码Source io/agentscope/core/memory/reme/ReMeAddResponse.java:125–127

setUpdateResult

public void setUpdateResult(UpdateResult updateResult)

设置更新结果。

Sets the update result.

参数Parameters
名称Name类型Type说明Description
updateResultUpdateResult更新结果(类型 `UpdateResult`)。The update result.
源码Source io/agentscope/core/memory/reme/ReMeAddResponse.java:129–131

toString

public String toString()

返回 toString 结果。

Returns the to string.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/memory/reme/ReMeAddResponse.java:133–143
基于官方固定版本源码静态生成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.