AS AgentScopeAPI 手册 / API Reference

ReMeSearchResponse

@JsonInclude(JsonInclude.Include.NON_NULL) public class ReMeSearchResponse
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:47–273

Re 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.

源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:60

方法详情Method Detail

getAnswer

public String getAnswer()

获取答案。

Returns the answer.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:64–66

setAnswer

public void setAnswer(String answer)

设置答案。

Sets the answer.

参数Parameters
名称Name类型Type说明Description
answerString答案(类型 `String`)。The answer.
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:68–70

getSuccess

public Boolean getSuccess()

获取成功。

Returns the success.

返回Returns Boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:72–74

setSuccess

public void setSuccess(Boolean success)

设置成功。

Sets the success.

参数Parameters
名称Name类型Type说明Description
successBoolean成功(类型 `Boolean`)。The success.
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:76–78

getMetadata

public Metadata getMetadata()

获取元数据。

Returns the metadata.

返回Returns Metadata
返回元数据。Returns metadata.
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:80–82

setMetadata

public void setMetadata(Metadata metadata)

设置元数据。

Sets the metadata.

参数Parameters
名称Name类型Type说明Description
metadataMetadata元数据(类型 `Metadata`)。The metadata.
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:84–86

getMemories

public List<String> getMemories()

获取 getMemories。

Gets the list of memory fragments from metadata as strings.

返回Returns List<String>
返回列出。List of memory content strings, or empty list if not available
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:95–103

toString

public String toString()

返回 toString 结果。

Returns the to string.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/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.

基于官方固定版本源码静态生成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.