Class BailianSearchRequest

java.lang.Object
io.agentscope.core.memory.bailian.BailianSearchRequest

public class BailianSearchRequest extends Object
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.

  • Constructor Details

    • BailianSearchRequest

      public BailianSearchRequest()
      Default constructor for Jackson.
  • Method Details

    • getUserId

      public String getUserId()
      Gets the user ID.
      Returns:
      the user ID
    • setUserId

      public void setUserId(String userId)
      Sets the user ID.
      Parameters:
      userId - the user ID
    • getMessages

      public List<BailianMessage> getMessages()
      Gets the messages.
      Returns:
      the messages list
    • setMessages

      public void setMessages(List<BailianMessage> messages)
      Sets the messages.
      Parameters:
      messages - the messages list
    • getMemoryLibraryId

      public String getMemoryLibraryId()
      Gets the memory library ID.
      Returns:
      the memory library ID
    • setMemoryLibraryId

      public void setMemoryLibraryId(String memoryLibraryId)
      Sets the memory library ID.
      Parameters:
      memoryLibraryId - the memory library ID
    • getProjectIds

      public List<String> getProjectIds()
      Gets the project IDs.
      Returns:
      the project IDs
    • setProjectIds

      public void setProjectIds(List<String> projectIds)
      Sets the project IDs.
      Parameters:
      projectIds - the project IDs
    • getTopK

      public Integer getTopK()
      Gets the top K.
      Returns:
      the top K value
    • setTopK

      public void setTopK(Integer topK)
      Sets the top K.
      Parameters:
      topK - the top K value
    • getMinScore

      public Double getMinScore()
      Gets the minimum score.
      Returns:
      the minimum score threshold
    • setMinScore

      public void setMinScore(Double minScore)
      Sets the minimum score.
      Parameters:
      minScore - the minimum score threshold
    • getEnableRerank

      public Boolean getEnableRerank()
      Gets the enable rerank value.
      Returns:
      the enable rerank value
    • setEnableRerank

      public void setEnableRerank(Boolean enableRerank)
      Sets the enable rerank value.
      Parameters:
      enableRerank - the enable rerank value
    • getEnableJudge

      public Boolean getEnableJudge()
      Gets the enable judge value.
      Returns:
      the enable judge value
    • setEnableJudge

      public void setEnableJudge(Boolean enableJudge)
      Sets the enable judge value.
      Parameters:
      enableJudge - the enable judge value
    • getEnableRewrite

      public Boolean getEnableRewrite()
      Gets the enable rewrite value.
      Returns:
      the enable rewrite value
    • setEnableRewrite

      public void setEnableRewrite(Boolean enableRewrite)
      Sets the enable rewrite value.
      Parameters:
      enableRewrite - the enable rewrite value
    • builder

      public static BailianSearchRequest.Builder builder()
      Creates a new builder for BailianSearchRequest.
      Returns:
      a new Builder instance