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

      @Deprecated(since="1.1.5", forRemoval=true) public PromptChatMemoryAdvisor.Builder systemPromptTemplate(PromptTemplate systemPromptTemplate)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Custom system prompt templates are disabled for PromptChatMemoryAdvisor. Only the default template is allowed.
      Set the system prompt template.
      Parameters:
      systemPromptTemplate - the system prompt template
      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