Builder
public static class Builder
源码Source
io/agentscope/core/memory/reme/ReMeSearchRequest.java:95–118ReMeSearchRequest的构建器。位于 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 |
|---|---|---|
workspaceId | String | 工作区标识(类型 `String`)。The workspace id. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/core/memory/reme/ReMeSearchRequest.java:100–103query
public Builder query(String query)
设置查询。
Performs the query operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
query | String | 查询文本(类型 `String`)。The query. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/core/memory/reme/ReMeSearchRequest.java:105–108topK
public Builder topK(Integer topK)
设置该配置项。
Performs the top k operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
topK | Integer | top K(类型 `Integer`)。The top k. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/core/memory/reme/ReMeSearchRequest.java:110–113build
public ReMeSearchRequest build()
构建并返回最终实例。
Creates and returns an instance.
ReMeSearchRequest返回ReMeSearchRequest。Returns re me search request.
源码Source
io/agentscope/core/memory/reme/ReMeSearchRequest.java:115–117