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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDeprecated, for removal: This API element is subject to removal in a future version.Builder for PromptChatMemoryAdvisor. -
Field Summary
Fields inherited from interface org.springframework.ai.chat.client.advisor.api.Advisor
DEFAULT_CHAT_MEMORY_PRECEDENCE_ORDERFields inherited from interface org.springframework.ai.chat.client.advisor.api.BaseAdvisor
DEFAULT_SCHEDULERFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Flux<ChatClientResponse>adviseStream(ChatClientRequest chatClientRequest, StreamAdvisorChain streamAdvisorChain) Deprecated, for removal: This API element is subject to removal in a future version.after(ChatClientResponse chatClientResponse, AdvisorChain advisorChain) Deprecated, for removal: This API element is subject to removal in a future version.Logic to be executed after the rest of the advisor chain is called.before(ChatClientRequest chatClientRequest, AdvisorChain advisorChain) Deprecated, for removal: This API element is subject to removal in a future version.Logic to be executed before the rest of the advisor chain is called.builder(ChatMemory chatMemory) Deprecated, for removal: This API element is subject to removal in a future version.intgetOrder()Deprecated, for removal: This API element is subject to removal in a future version.reactor.core.scheduler.SchedulerDeprecated, for removal: This API element is subject to removal in a future version.Scheduler used for processing the advisor logic when streaming.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.ai.chat.client.advisor.api.BaseAdvisor
adviseCall, getNameMethods inherited from interface org.springframework.ai.chat.client.advisor.api.BaseChatMemoryAdvisor
getConversationId
-
Method Details
-
builder
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:
getOrderin interfaceorg.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:BaseAdvisorScheduler used for processing the advisor logic when streaming.- Specified by:
getSchedulerin interfaceBaseAdvisor
-
before
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:BaseAdvisorLogic to be executed before the rest of the advisor chain is called.- Specified by:
beforein interfaceBaseAdvisor
-
after
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:BaseAdvisorLogic to be executed after the rest of the advisor chain is called.- Specified by:
afterin interfaceBaseAdvisor
-
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:
adviseStreamin interfaceBaseAdvisor- Specified by:
adviseStreamin interfaceStreamAdvisor
-