BailianSearchRequest
@JsonInclude(JsonInclude.Include.NON_NULL) public class BailianSearchRequest
io/agentscope/core/memory/bailian/BailianSearchRequest.java:28–375Bailian 搜索请求,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.core.memory.bailian 包。核心成员包括 getUserId、setUserId、getMessages、setMessages、getMemoryLibraryId、setMemoryLibraryId。
Request object for searching memories in Bailian Memory API.
This request is sent to the POST /api/v2/apps/memory/memory_nodes/search endpoint to retrieve relevant memories based on semantic similarity to the query messages.
嵌套类摘要Nested Class Summary
| 类Class | 类型Kind | 说明Description |
|---|---|---|
Builder | 类class | BailianSearchRequest的构建器。 Builder for BailianSearchRequest. |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public BailianSearchRequest() | 初始化 `BailianSearchRequest` 实例。 Default constructor for Jackson. |
方法摘要Method Summary
构造器详情Constructor Detail
BailianSearchRequest
public BailianSearchRequest()
初始化 BailianSearchRequest 实例。
Default constructor for Jackson.
io/agentscope/core/memory/bailian/BailianSearchRequest.java:70方法详情Method Detail
getUserId
public String getUserId()
获取用户标识。
Gets the user ID.
Stringio/agentscope/core/memory/bailian/BailianSearchRequest.java:77–79setUserId
public void setUserId(String userId)
设置用户标识。
Sets the user ID.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
userId | String | 用户标识。the user ID |
io/agentscope/core/memory/bailian/BailianSearchRequest.java:86–88getMessages
public List<BailianMessage> getMessages()
获取消息。
Gets the messages.
List<BailianMessage>io/agentscope/core/memory/bailian/BailianSearchRequest.java:95–97setMessages
public void setMessages(List<BailianMessage> messages)
设置消息。
Sets the messages.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
messages | List<BailianMessage> | 消息列出。the messages list |
io/agentscope/core/memory/bailian/BailianSearchRequest.java:104–106getMemoryLibraryId
public String getMemoryLibraryId()
获取 getMemoryLibraryId。
Gets the memory library ID.
Stringio/agentscope/core/memory/bailian/BailianSearchRequest.java:113–115setMemoryLibraryId
public void setMemoryLibraryId(String memoryLibraryId)
设置 setMemoryLibraryId。
Sets the memory library ID.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
memoryLibraryId | String | 记忆 Library 标识(类型 `String`)。the memory library ID |
io/agentscope/core/memory/bailian/BailianSearchRequest.java:122–124getProjectIds
public List<String> getProjectIds()
获取 getProjectIds。
Gets the project IDs.
List<String>io/agentscope/core/memory/bailian/BailianSearchRequest.java:131–133setProjectIds
public void setProjectIds(List<String> projectIds)
设置 setProjectIds。
Sets the project IDs.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
projectIds | List<String> | project Ids(类型 `List`)。the project IDs |
io/agentscope/core/memory/bailian/BailianSearchRequest.java:140–142getTopK
public Integer getTopK()
获取 getTopK。
Gets the top K.
Integerio/agentscope/core/memory/bailian/BailianSearchRequest.java:149–151setTopK
public void setTopK(Integer topK)
设置 setTopK。
Sets the top K.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
topK | Integer | top K(类型 `Integer`)。the top K value |
io/agentscope/core/memory/bailian/BailianSearchRequest.java:158–160getMinScore
public Double getMinScore()
获取最小分数。
Gets the minimum score.
Doubleio/agentscope/core/memory/bailian/BailianSearchRequest.java:167–169setMinScore
public void setMinScore(Double minScore)
设置最小分数。
Sets the minimum score.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
minScore | Double | 最小分数(类型 `Double`)。the minimum score threshold |
io/agentscope/core/memory/bailian/BailianSearchRequest.java:176–178getEnableRerank
public Boolean getEnableRerank()
获取启用重排值。
Gets the enable rerank value.
Booleanio/agentscope/core/memory/bailian/BailianSearchRequest.java:185–187setEnableRerank
public void setEnableRerank(Boolean enableRerank)
设置启用重排值。
Sets the enable rerank value.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
enableRerank | Boolean | 启用重排值。the enable rerank value |
io/agentscope/core/memory/bailian/BailianSearchRequest.java:194–196getEnableJudge
public Boolean getEnableJudge()
获取启用评判器值。
Gets the enable judge value.
Booleanio/agentscope/core/memory/bailian/BailianSearchRequest.java:203–205setEnableJudge
public void setEnableJudge(Boolean enableJudge)
设置启用评判器值。
Sets the enable judge value.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
enableJudge | Boolean | 启用评判器值。the enable judge value |
io/agentscope/core/memory/bailian/BailianSearchRequest.java:212–214getEnableRewrite
public Boolean getEnableRewrite()
获取 getEnableRewrite。
Gets the enable rewrite value.
Booleanio/agentscope/core/memory/bailian/BailianSearchRequest.java:221–223setEnableRewrite
public void setEnableRewrite(Boolean enableRewrite)
设置 setEnableRewrite。
Sets the enable rewrite value.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
enableRewrite | Boolean | 启用 Rewrite(类型 `Boolean`)。the enable rewrite value |
io/agentscope/core/memory/bailian/BailianSearchRequest.java:230–232builder
public static Builder builder()
创建新的构建器用于 BailianSearchRequest。
Creates a new builder for BailianSearchRequest.
Builderio/agentscope/core/memory/bailian/BailianSearchRequest.java:239–241嵌套类详情Nested Class Detail
Builder
public static class BuilderBailianSearchRequest的构建器。位于 io.agentscope.core.memory.bailian 包。核心成员包括 userId、messages、memoryLibraryId、projectIds、topK、minScore。
Builder for BailianSearchRequest.