ReMeSearchResponse
@JsonInclude(JsonInclude.Include.NON_NULL) public class ReMeSearchResponse
io/agentscope/core/memory/reme/ReMeSearchResponse.java:47–273Re Me 搜索响应,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.core.memory.reme 包。核心成员包括 getAnswer、setAnswer、getSuccess、setSuccess、getMetadata、setMetadata。
Response object from ReMe's search memory API.
This response is returned from the POST /retrieve_personal_memory endpoint
after performing a memory search. The actual response format is:
`{
"answer": "string",
"success": true,
"metadata": {
"memory_list": [
{
"workspace_id": "...",
"memory_id": "...",
"content": "...",
...
}
]
}
}
`
嵌套类摘要Nested Class Summary
| 类Class | 类型Kind | 说明Description |
|---|---|---|
Metadata | 类class | 元数据,在多次调用之间保存和恢复会话与记忆数据。 Metadata object containing memory list. |
MemoryItem | 类class | 记忆条目,在多次调用之间保存和恢复会话与记忆数据。 Represents a single memory item in the response. |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public ReMeSearchResponse() | 初始化 `ReMeSearchResponse` 实例。 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 List<String> getMemories() | 获取 `getMemories`。 Gets the list of memory fragments from metadata as strings. |
public String toString() | 返回 `toString` 结果。 Returns the to string. |
构造器详情Constructor Detail
ReMeSearchResponse
public ReMeSearchResponse()
初始化 ReMeSearchResponse 实例。
Default constructor for Jackson.
io/agentscope/core/memory/reme/ReMeSearchResponse.java:60方法详情Method Detail
getAnswer
public String getAnswer()
获取答案。
Returns the answer.
Stringio/agentscope/core/memory/reme/ReMeSearchResponse.java:64–66setAnswer
public void setAnswer(String answer)
设置答案。
Sets the answer.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
answer | String | 答案(类型 `String`)。The answer. |
io/agentscope/core/memory/reme/ReMeSearchResponse.java:68–70getSuccess
public Boolean getSuccess()
获取成功。
Returns the success.
Booleanio/agentscope/core/memory/reme/ReMeSearchResponse.java:72–74setSuccess
public void setSuccess(Boolean success)
设置成功。
Sets the success.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
success | Boolean | 成功(类型 `Boolean`)。The success. |
io/agentscope/core/memory/reme/ReMeSearchResponse.java:76–78getMetadata
public Metadata getMetadata()
获取元数据。
Returns the metadata.
Metadataio/agentscope/core/memory/reme/ReMeSearchResponse.java:80–82setMetadata
public void setMetadata(Metadata metadata)
设置元数据。
Sets the metadata.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
metadata | Metadata | 元数据(类型 `Metadata`)。The metadata. |
io/agentscope/core/memory/reme/ReMeSearchResponse.java:84–86getMemories
public List<String> getMemories()
获取 getMemories。
Gets the list of memory fragments from metadata as strings.
List<String>io/agentscope/core/memory/reme/ReMeSearchResponse.java:95–103toString
public String toString()
返回 toString 结果。
Returns the to string.
Stringio/agentscope/core/memory/reme/ReMeSearchResponse.java:105–116嵌套类详情Nested Class Detail
Metadata
@JsonInclude(JsonInclude.Include.NON_NULL) public static class Metadata元数据,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.core.memory.reme 包。核心成员包括 getMemoryList、setMemoryList、toString。
Metadata object containing memory list.
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.