AS AgentScopeAPI 手册 / API Reference

Mem0AddResponse

@JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnoreProperties(ignoreUnknown = true) public class Mem0AddResponse
源码Source io/agentscope/core/memory/mem0/Mem0AddResponse.java:34–78

Mem 0 添加响应,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.core.memory.mem0 包。核心成员包括 getResults、setResults、getMessage、setMessage、toString、Mem0AddResponse。

Response object from Mem0's add memory API.

This response is returned from the POST /v1/memories endpoint after successfully adding memories. It contains the extracted memories and any relevant metadata about the operation.

The results field contains the memories that were successfully extracted and stored. An empty results list indicates that no memorable information was found in the input messages.

构造器摘要Constructor Summary

构造器Constructor说明Description
public Mem0AddResponse()
初始化 `Mem0AddResponse` 实例。
Default constructor for Jackson.

方法摘要Method Summary

方法Method说明Description
public List<Map<String, Object>> getResults()
获取结果。
Returns the results.
public void setResults(List<Map<String, Object>> results)
设置结果。
Sets the results.
public String getMessage()
获取消息。
Returns the message.
public void setMessage(String message)
设置消息。
Sets the message.
public String toString()
返回 `toString` 结果。
Returns the to string.

构造器详情Constructor Detail

Mem0AddResponse

public Mem0AddResponse()

初始化 Mem0AddResponse 实例。

Default constructor for Jackson.

源码Source io/agentscope/core/memory/mem0/Mem0AddResponse.java:48

方法详情Method Detail

getResults

public List<Map<String, Object>> getResults()

获取结果。

Returns the results.

返回Returns List<Map<String, Object>>
返回列出>。Returns list.
源码Source io/agentscope/core/memory/mem0/Mem0AddResponse.java:52–54

setResults

public void setResults(List<Map<String, Object>> results)

设置结果。

Sets the results.

参数Parameters
名称Name类型Type说明Description
resultsList<Map<String, Object>>结果(类型 `List >`)。The results.
源码Source io/agentscope/core/memory/mem0/Mem0AddResponse.java:56–58

getMessage

public String getMessage()

获取消息。

Returns the message.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/memory/mem0/Mem0AddResponse.java:60–62

setMessage

public void setMessage(String message)

设置消息。

Sets the message.

参数Parameters
名称Name类型Type说明Description
messageString消息(类型 `String`)。The message.
源码Source io/agentscope/core/memory/mem0/Mem0AddResponse.java:64–66

toString

public String toString()

返回 toString 结果。

Returns the to string.

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