ReMeAddResponse
@JsonInclude(JsonInclude.Include.NON_NULL) public class ReMeAddResponse
io/agentscope/core/memory/reme/ReMeAddResponse.java:43–314Re Me 添加响应,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.core.memory.reme 包。核心成员包括 getAnswer、setAnswer、getSuccess、setSuccess、getMetadata、setMetadata。
Response object from ReMe's add memory API.
This response is returned from the POST /summary_personal_memory endpoint
after successfully adding memories. The actual response format is:
`{
"answer": "",
"success": true,
"metadata": {
"memory_list": [...],
"deleted_memory_ids": [],
"update_result": {
"deleted_count": 0,
"inserted_count": 1
}
}
}
`
嵌套类摘要Nested Class Summary
| 类Class | 类型Kind | 说明Description |
|---|---|---|
Metadata | 类class | 元数据,在多次调用之间保存和恢复会话与记忆数据。 Metadata object containing memory list and update results. |
MemoryItem | 类class | 记忆条目,在多次调用之间保存和恢复会话与记忆数据。 Represents a single memory item in the response. |
UpdateResult | 类class | 更新结果,在多次调用之间保存和恢复会话与记忆数据。 Update result information. |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public ReMeAddResponse() | 初始化 `ReMeAddResponse` 实例。 Default constructor for Jackson. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getAnswer() | 获取答案。 Returns the answer. |
public void setAnswer(String answer) | 设置答案。 Sets the answer. |
public Boolean getSuccess() | 获取成功。 Returns the success. |
public void setSuccess(Boolean success) | 设置成功。 Sets the success. |
public Metadata getMetadata() | 获取元数据。 Returns the metadata. |
public void setMetadata(Metadata metadata) | 设置元数据。 Sets the metadata. |
public String toString() | 返回 `toString` 结果。 Returns the to string. |
构造器详情Constructor Detail
ReMeAddResponse
public ReMeAddResponse()
初始化 ReMeAddResponse 实例。
Default constructor for Jackson.
io/agentscope/core/memory/reme/ReMeAddResponse.java:56方法详情Method Detail
getAnswer
public String getAnswer()
获取答案。
Returns the answer.
Stringio/agentscope/core/memory/reme/ReMeAddResponse.java:60–62setAnswer
public void setAnswer(String answer)
设置答案。
Sets the answer.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
answer | String | 答案(类型 `String`)。The answer. |
io/agentscope/core/memory/reme/ReMeAddResponse.java:64–66getSuccess
public Boolean getSuccess()
获取成功。
Returns the success.
Booleanio/agentscope/core/memory/reme/ReMeAddResponse.java:68–70setSuccess
public void setSuccess(Boolean success)
设置成功。
Sets the success.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
success | Boolean | 成功(类型 `Boolean`)。The success. |
io/agentscope/core/memory/reme/ReMeAddResponse.java:72–74getMetadata
public Metadata getMetadata()
获取元数据。
Returns the metadata.
Metadataio/agentscope/core/memory/reme/ReMeAddResponse.java:76–78setMetadata
public void setMetadata(Metadata metadata)
设置元数据。
Sets the metadata.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
metadata | Metadata | 元数据(类型 `Metadata`)。The metadata. |
io/agentscope/core/memory/reme/ReMeAddResponse.java:80–82toString
public String toString()
返回 toString 结果。
Returns the to string.
Stringio/agentscope/core/memory/reme/ReMeAddResponse.java:84–95嵌套类详情Nested Class Detail
Metadata
@JsonInclude(JsonInclude.Include.NON_NULL) public static class Metadata元数据,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.core.memory.reme 包。核心成员包括 getMemoryList、setMemoryList、getDeletedMemoryIds、setDeletedMemoryIds、getUpdateResult、setUpdateResult。
Metadata object containing memory list and update results.
MemoryItem
@JsonInclude(JsonInclude.Include.NON_NULL) public static class MemoryItem记忆条目,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.core.memory.reme 包。核心成员包括 getWorkspaceId、setWorkspaceId、getMemoryId、setMemoryId、getMemoryType、setMemoryType。
Represents a single memory item in the response.
UpdateResult
@JsonInclude(JsonInclude.Include.NON_NULL) public static class UpdateResult更新结果,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.core.memory.reme 包。核心成员包括 getDeletedCount、setDeletedCount、getInsertedCount、setInsertedCount、toString。
Update result information.