AS AgentScopeAPI 手册 / API Reference

Builder

public static class Builder
源码Source io/agentscope/core/memory/reme/ReMeSearchRequest.java:95–118

ReMeSearchRequest的构建器。位于 io.agentscope.core.memory.reme 包。核心成员包括 workspaceId、query、topK、build。

Builder for ReMeSearchRequest.

方法摘要Method Summary

方法Method说明Description
public Builder workspaceId(String workspaceId)
设置工作区标识。
Performs the workspace id operation.
public Builder query(String query)
设置查询。
Performs the query operation.
public Builder topK(Integer topK)
设置该配置项。
Performs the top k operation.
public ReMeSearchRequest build()
构建并返回最终实例。
Creates and returns an instance.

方法详情Method Detail

workspaceId

public Builder workspaceId(String workspaceId)

设置工作区标识。

Performs the workspace id operation.

参数Parameters
名称Name类型Type说明Description
workspaceIdString工作区标识(类型 `String`)。The workspace id.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/core/memory/reme/ReMeSearchRequest.java:100–103

query

public Builder query(String query)

设置查询。

Performs the query operation.

参数Parameters
名称Name类型Type说明Description
queryString查询文本(类型 `String`)。The query.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/core/memory/reme/ReMeSearchRequest.java:105–108

topK

public Builder topK(Integer topK)

设置该配置项。

Performs the top k operation.

参数Parameters
名称Name类型Type说明Description
topKIntegertop K(类型 `Integer`)。The top k.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/core/memory/reme/ReMeSearchRequest.java:110–113

build

public ReMeSearchRequest build()

构建并返回最终实例。

Creates and returns an instance.

返回Returns ReMeSearchRequest
返回ReMeSearchRequest。Returns re me search request.
源码Source io/agentscope/core/memory/reme/ReMeSearchRequest.java:115–117
基于官方固定版本源码静态生成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.