Mem0AddResponse
@JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnoreProperties(ignoreUnknown = true) public class Mem0AddResponse
源码Source
io/agentscope/core/memory/mem0/Mem0AddResponse.java:34–78Mem 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.
List<Map<String, Object>>返回列出>。Returns list.
源码Source
io/agentscope/core/memory/mem0/Mem0AddResponse.java:52–54setResults
public void setResults(List<Map<String, Object>> results)
设置结果。
Sets the results.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
results | List<Map<String, Object>> | 结果(类型 `List >`)。The results. |
源码Source
io/agentscope/core/memory/mem0/Mem0AddResponse.java:56–58getMessage
public String getMessage()
获取消息。
Returns the message.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/memory/mem0/Mem0AddResponse.java:60–62setMessage
public void setMessage(String message)
设置消息。
Sets the message.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
message | String | 消息(类型 `String`)。The message. |
源码Source
io/agentscope/core/memory/mem0/Mem0AddResponse.java:64–66toString
public String toString()
返回 toString 结果。
Returns the to string.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/memory/mem0/Mem0AddResponse.java:68–77