AS AgentScopeAPI 手册 / API Reference

BailianSearchRequest

@JsonInclude(JsonInclude.Include.NON_NULL) public class BailianSearchRequest
源码Source io/agentscope/core/memory/bailian/BailianSearchRequest.java:28–375

Bailian 搜索请求,在多次调用之间保存和恢复会话与记忆数据。位于 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

方法Method说明Description
public String getUserId()
获取用户标识。
Gets the user ID.
public void setUserId(String userId)
设置用户标识。
Sets the user ID.
public List<BailianMessage> getMessages()
获取消息。
Gets the messages.
public void setMessages(List<BailianMessage> messages)
设置消息。
Sets the messages.
public String getMemoryLibraryId()
获取 `getMemoryLibraryId`。
Gets the memory library ID.
public void setMemoryLibraryId(String memoryLibraryId)
设置 `setMemoryLibraryId`。
Sets the memory library ID.
public List<String> getProjectIds()
获取 `getProjectIds`。
Gets the project IDs.
public void setProjectIds(List<String> projectIds)
设置 `setProjectIds`。
Sets the project IDs.
public Integer getTopK()
获取 `getTopK`。
Gets the top K.
public void setTopK(Integer topK)
设置 `setTopK`。
Sets the top K.
public Double getMinScore()
获取最小分数。
Gets the minimum score.
public void setMinScore(Double minScore)
设置最小分数。
Sets the minimum score.
public Boolean getEnableRerank()
获取启用重排值。
Gets the enable rerank value.
public void setEnableRerank(Boolean enableRerank)
设置启用重排值。
Sets the enable rerank value.
public Boolean getEnableJudge()
获取启用评判器值。
Gets the enable judge value.
public void setEnableJudge(Boolean enableJudge)
设置启用评判器值。
Sets the enable judge value.
public Boolean getEnableRewrite()
获取 `getEnableRewrite`。
Gets the enable rewrite value.
public void setEnableRewrite(Boolean enableRewrite)
设置 `setEnableRewrite`。
Sets the enable rewrite value.
public static Builder builder()
static
创建新的构建器用于 BailianSearchRequest。
Creates a new builder for BailianSearchRequest.

构造器详情Constructor Detail

BailianSearchRequest

public BailianSearchRequest()

初始化 BailianSearchRequest 实例。

Default constructor for Jackson.

源码Source io/agentscope/core/memory/bailian/BailianSearchRequest.java:70

方法详情Method Detail

getUserId

public String getUserId()

获取用户标识。

Gets the user ID.

返回Returns String
用户标识。the user ID
源码Source io/agentscope/core/memory/bailian/BailianSearchRequest.java:77–79

setUserId

public void setUserId(String userId)

设置用户标识。

Sets the user ID.

参数Parameters
名称Name类型Type说明Description
userIdString用户标识。the user ID
源码Source io/agentscope/core/memory/bailian/BailianSearchRequest.java:86–88

getMessages

public List<BailianMessage> getMessages()

获取消息。

Gets the messages.

返回Returns List<BailianMessage>
消息列出。the messages list
源码Source io/agentscope/core/memory/bailian/BailianSearchRequest.java:95–97

setMessages

public void setMessages(List<BailianMessage> messages)

设置消息。

Sets the messages.

参数Parameters
名称Name类型Type说明Description
messagesList<BailianMessage>消息列出。the messages list
源码Source io/agentscope/core/memory/bailian/BailianSearchRequest.java:104–106

getMemoryLibraryId

public String getMemoryLibraryId()

获取 getMemoryLibraryId。

Gets the memory library ID.

返回Returns String
返回字符串结果。the memory library ID
源码Source io/agentscope/core/memory/bailian/BailianSearchRequest.java:113–115

setMemoryLibraryId

public void setMemoryLibraryId(String memoryLibraryId)

设置 setMemoryLibraryId。

Sets the memory library ID.

参数Parameters
名称Name类型Type说明Description
memoryLibraryIdString记忆 Library 标识(类型 `String`)。the memory library ID
源码Source io/agentscope/core/memory/bailian/BailianSearchRequest.java:122–124

getProjectIds

public List<String> getProjectIds()

获取 getProjectIds。

Gets the project IDs.

返回Returns List<String>
返回列出。the project IDs
源码Source io/agentscope/core/memory/bailian/BailianSearchRequest.java:131–133

setProjectIds

public void setProjectIds(List<String> projectIds)

设置 setProjectIds。

Sets the project IDs.

参数Parameters
名称Name类型Type说明Description
projectIdsList<String>project Ids(类型 `List`)。the project IDs
源码Source io/agentscope/core/memory/bailian/BailianSearchRequest.java:140–142

getTopK

public Integer getTopK()

获取 getTopK。

Gets the top K.

返回Returns Integer
返回数值结果。the top K value
源码Source io/agentscope/core/memory/bailian/BailianSearchRequest.java:149–151

setTopK

public void setTopK(Integer topK)

设置 setTopK。

Sets the top K.

参数Parameters
名称Name类型Type说明Description
topKIntegertop K(类型 `Integer`)。the top K value
源码Source io/agentscope/core/memory/bailian/BailianSearchRequest.java:158–160

getMinScore

public Double getMinScore()

获取最小分数。

Gets the minimum score.

返回Returns Double
返回数值结果。the minimum score threshold
源码Source io/agentscope/core/memory/bailian/BailianSearchRequest.java:167–169

setMinScore

public void setMinScore(Double minScore)

设置最小分数。

Sets the minimum score.

参数Parameters
名称Name类型Type说明Description
minScoreDouble最小分数(类型 `Double`)。the minimum score threshold
源码Source io/agentscope/core/memory/bailian/BailianSearchRequest.java:176–178

getEnableRerank

public Boolean getEnableRerank()

获取启用重排值。

Gets the enable rerank value.

返回Returns Boolean
启用重排值。the enable rerank value
源码Source io/agentscope/core/memory/bailian/BailianSearchRequest.java:185–187

setEnableRerank

public void setEnableRerank(Boolean enableRerank)

设置启用重排值。

Sets the enable rerank value.

参数Parameters
名称Name类型Type说明Description
enableRerankBoolean启用重排值。the enable rerank value
源码Source io/agentscope/core/memory/bailian/BailianSearchRequest.java:194–196

getEnableJudge

public Boolean getEnableJudge()

获取启用评判器值。

Gets the enable judge value.

返回Returns Boolean
启用评判器值。the enable judge value
源码Source io/agentscope/core/memory/bailian/BailianSearchRequest.java:203–205

setEnableJudge

public void setEnableJudge(Boolean enableJudge)

设置启用评判器值。

Sets the enable judge value.

参数Parameters
名称Name类型Type说明Description
enableJudgeBoolean启用评判器值。the enable judge value
源码Source io/agentscope/core/memory/bailian/BailianSearchRequest.java:212–214

getEnableRewrite

public Boolean getEnableRewrite()

获取 getEnableRewrite。

Gets the enable rewrite value.

返回Returns Boolean
返回布尔值,表示判断结果。the enable rewrite value
源码Source io/agentscope/core/memory/bailian/BailianSearchRequest.java:221–223

setEnableRewrite

public void setEnableRewrite(Boolean enableRewrite)

设置 setEnableRewrite。

Sets the enable rewrite value.

参数Parameters
名称Name类型Type说明Description
enableRewriteBoolean启用 Rewrite(类型 `Boolean`)。the enable rewrite value
源码Source io/agentscope/core/memory/bailian/BailianSearchRequest.java:230–232

builder

public static Builder builder()
static

创建新的构建器用于 BailianSearchRequest。

Creates a new builder for BailianSearchRequest.

返回Returns Builder
一种新的构建器实例。a new Builder instance
源码Source io/agentscope/core/memory/bailian/BailianSearchRequest.java:239–241

嵌套类详情Nested Class Detail

Builder

public static class Builder

BailianSearchRequest的构建器。位于 io.agentscope.core.memory.bailian 包。核心成员包括 userId、messages、memoryLibraryId、projectIds、topK、minScore。

Builder for BailianSearchRequest.

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