Class PromptChatMemoryAdvisor.Builder

java.lang.Object
org.springframework.ai.chat.client.advisor.PromptChatMemoryAdvisor.Builder
Enclosing class:
PromptChatMemoryAdvisor

public static final class PromptChatMemoryAdvisor.Builder extends Object
Builder for PromptChatMemoryAdvisor.
  • Method Details

    • systemPromptTemplate

      public PromptChatMemoryAdvisor.Builder systemPromptTemplate(org.springframework.ai.chat.prompt.PromptTemplate systemPromptTemplate)
      Set the system prompt template.
      Parameters:
      systemPromptTemplate - the system prompt template
      Returns:
      the builder
    • conversationId

      public PromptChatMemoryAdvisor.Builder conversationId(String conversationId)
      Set the conversation id.
      Parameters:
      conversationId - the conversation id
      Returns:
      the builder
    • scheduler

      public PromptChatMemoryAdvisor.Builder scheduler(reactor.core.scheduler.Scheduler scheduler)
    • order

      public PromptChatMemoryAdvisor.Builder order(int order)
      Set the order.
      Parameters:
      order - the order
      Returns:
      the builder
    • build

      public PromptChatMemoryAdvisor build()
      Build the advisor.
      Returns:
      the advisor