AS AgentScopeAPI 手册 / API Reference

ReMeClient

public class ReMeClient
源码Source io/agentscope/core/memory/reme/ReMeClient.java:33–177

Re Me 客户端,封装与远端服务的连接和调用。位于 io.agentscope.core.memory.reme 包。核心成员包括 add、search、shutdown、ReMeClient。

HTTP client for interacting with the ReMe API.

构造器摘要Constructor Summary

构造器Constructor说明Description
public ReMeClient(String apiBaseUrl)
初始化 `ReMeClient` 实例。
Creates a new ReMeClient with specified configuration.
public ReMeClient(String apiBaseUrl, Duration timeout)
创建新的ReMeClient 使用自定义超时。
Creates a new ReMeClient with custom timeout.

方法摘要Method Summary

方法Method说明Description
public Mono<ReMeAddResponse> add(ReMeAddRequest request)
设置添加。
Adds memories to ReMe by sending trajectories for processing.
public Mono<ReMeSearchResponse> search(ReMeSearchRequest request)
设置搜索。
Searches memories in ReMe using the provided query.
public void shutdown()
关闭资源并释放连接。
Shuts down the HTTP client and releases resources.

构造器详情Constructor Detail

ReMeClient

public ReMeClient(String apiBaseUrl)

初始化 ReMeClient 实例。

Creates a new ReMeClient with specified configuration.

参数Parameters
名称Name类型Type说明Description
apiBaseUrlStringAPI 基类 URL(类型 `String`)。The base URL of the ReMe API (e.g., "http://localhost:8002")
源码Source io/agentscope/core/memory/reme/ReMeClient.java:47–49

ReMeClient

public ReMeClient(String apiBaseUrl, Duration timeout)

创建新的ReMeClient 使用自定义超时。

Creates a new ReMeClient with custom timeout.

参数Parameters
名称Name类型Type说明Description
apiBaseUrlStringReMe API的基类 URL。The base URL of the ReMe API
timeoutDuration超时时间(类型 `Duration`)。HTTP request timeout duration
源码Source io/agentscope/core/memory/reme/ReMeClient.java:57–68

方法详情Method Detail

add

public Mono<ReMeAddResponse> add(ReMeAddRequest request)

设置添加。

Adds memories to ReMe by sending trajectories for processing.

参数Parameters
名称Name类型Type说明Description
requestReMeAddRequest请求(类型 `ReMeAddRequest`)。The add request containing trajectories and workspace ID
返回Returns Mono<ReMeAddResponse>
返回Mono。A Mono emitting the response
源码Source io/agentscope/core/memory/reme/ReMeClient.java:145–148

shutdown

public void shutdown()

关闭资源并释放连接。

Shuts down the HTTP client and releases resources.

源码Source io/agentscope/core/memory/reme/ReMeClient.java:173–176
基于官方固定版本源码静态生成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.