Class BailianSearchRequest.Builder
java.lang.Object
io.agentscope.core.memory.bailian.BailianSearchRequest.Builder
- Enclosing class:
- BailianSearchRequest
Builder for BailianSearchRequest.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the BailianSearchRequest instance.enableJudge(Boolean enableJudge) Sets the enableJudge value.enableRerank(Boolean enableRerank) Sets the enableRerank value.enableRewrite(Boolean enableRewrite) Sets the enableRewrite value.memoryLibraryId(String memoryLibraryId) Sets the memory library ID.messages(List<BailianMessage> messages) Sets the messages.Sets the minimum score.projectIds(List<String> projectIds) Sets the project IDs.Sets the top K.Sets the user ID.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
userId
Sets the user ID.- Parameters:
userId- the user ID- Returns:
- this builder
-
messages
Sets the messages.- Parameters:
messages- the messages list- Returns:
- this builder
-
memoryLibraryId
Sets the memory library ID.- Parameters:
memoryLibraryId- the memory library ID- Returns:
- this builder
-
projectIds
Sets the project IDs.- Parameters:
projectIds- the project IDs- Returns:
- this builder
-
topK
Sets the top K.- Parameters:
topK- the top K value- Returns:
- this builder
-
minScore
Sets the minimum score.- Parameters:
minScore- the minimum score threshold- Returns:
- this builder
-
enableRerank
Sets the enableRerank value.- Parameters:
enableRerank- the enableRerank value- Returns:
- this builder
-
enableJudge
Sets the enableJudge value.- Parameters:
enableJudge- the enableJudge value- Returns:
- this builder
-
enableRewrite
Sets the enableRewrite value.- Parameters:
enableRewrite- the enableRewrite value- Returns:
- this builder
-
build
Builds the BailianSearchRequest instance.- Returns:
- a new BailianSearchRequest instance
-