Class BailianSearchRequest
java.lang.Object
io.agentscope.core.memory.bailian.BailianSearchRequest
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
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for BailianSearchRequest. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BailianSearchRequest.Builderbuilder()Creates a new builder for BailianSearchRequest.Gets the enable judge value.Gets the enable rerank value.Gets the enable rewrite value.Gets the memory library ID.Gets the messages.Gets the minimum score.Gets the project IDs.getTopK()Gets the top K.Gets the user ID.voidsetEnableJudge(Boolean enableJudge) Sets the enable judge value.voidsetEnableRerank(Boolean enableRerank) Sets the enable rerank value.voidsetEnableRewrite(Boolean enableRewrite) Sets the enable rewrite value.voidsetMemoryLibraryId(String memoryLibraryId) Sets the memory library ID.voidsetMessages(List<BailianMessage> messages) Sets the messages.voidsetMinScore(Double minScore) Sets the minimum score.voidsetProjectIds(List<String> projectIds) Sets the project IDs.voidSets the top K.voidSets the user ID.
-
Constructor Details
-
BailianSearchRequest
public BailianSearchRequest()Default constructor for Jackson.
-
-
Method Details
-
getUserId
Gets the user ID.- Returns:
- the user ID
-
setUserId
Sets the user ID.- Parameters:
userId- the user ID
-
getMessages
Gets the messages.- Returns:
- the messages list
-
setMessages
Sets the messages.- Parameters:
messages- the messages list
-
getMemoryLibraryId
Gets the memory library ID.- Returns:
- the memory library ID
-
setMemoryLibraryId
Sets the memory library ID.- Parameters:
memoryLibraryId- the memory library ID
-
getProjectIds
Gets the project IDs.- Returns:
- the project IDs
-
setProjectIds
Sets the project IDs.- Parameters:
projectIds- the project IDs
-
getTopK
Gets the top K.- Returns:
- the top K value
-
setTopK
Sets the top K.- Parameters:
topK- the top K value
-
getMinScore
Gets the minimum score.- Returns:
- the minimum score threshold
-
setMinScore
Sets the minimum score.- Parameters:
minScore- the minimum score threshold
-
getEnableRerank
Gets the enable rerank value.- Returns:
- the enable rerank value
-
setEnableRerank
Sets the enable rerank value.- Parameters:
enableRerank- the enable rerank value
-
getEnableJudge
Gets the enable judge value.- Returns:
- the enable judge value
-
setEnableJudge
Sets the enable judge value.- Parameters:
enableJudge- the enable judge value
-
getEnableRewrite
Gets the enable rewrite value.- Returns:
- the enable rewrite value
-
setEnableRewrite
Sets the enable rewrite value.- Parameters:
enableRewrite- the enable rewrite value
-
builder
Creates a new builder for BailianSearchRequest.- Returns:
- a new Builder instance
-