Class PromptChatMemoryAdvisor

java.lang.Object
org.springframework.ai.chat.client.advisor.PromptChatMemoryAdvisor
All Implemented Interfaces:
Advisor, BaseAdvisor, BaseChatMemoryAdvisor, CallAdvisor, StreamAdvisor, org.springframework.core.Ordered

@Deprecated(since="1.1.3", forRemoval=true) public final class PromptChatMemoryAdvisor extends Object implements BaseChatMemoryAdvisor
Deprecated, for removal: This API element is subject to removal in a future version.
since 1.1.3 in favor of MessageChatMemoryAdvisor implementation.
Memory is retrieved added into the prompt's system text.
Since:
1.0.0
Author:
Christian Tzolov, Miloš Havránek, Thomas Vitale, Mark Pollack
  • Method Details

    • builder

      public static PromptChatMemoryAdvisor.Builder builder(ChatMemory chatMemory)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getOrder

      public int getOrder()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getOrder in interface org.springframework.core.Ordered
    • getScheduler

      public reactor.core.scheduler.Scheduler getScheduler()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: BaseAdvisor
      Scheduler used for processing the advisor logic when streaming.
      Specified by:
      getScheduler in interface BaseAdvisor
    • before

      public ChatClientRequest before(ChatClientRequest chatClientRequest, AdvisorChain advisorChain)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: BaseAdvisor
      Logic to be executed before the rest of the advisor chain is called.
      Specified by:
      before in interface BaseAdvisor
    • after

      public ChatClientResponse after(ChatClientResponse chatClientResponse, AdvisorChain advisorChain)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: BaseAdvisor
      Logic to be executed after the rest of the advisor chain is called.
      Specified by:
      after in interface BaseAdvisor
    • adviseStream

      public reactor.core.publisher.Flux<ChatClientResponse> adviseStream(ChatClientRequest chatClientRequest, StreamAdvisorChain streamAdvisorChain)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      adviseStream in interface BaseAdvisor
      Specified by:
      adviseStream in interface StreamAdvisor