Interface MemoryAdvisor
- All Superinterfaces:
Advisor,org.springframework.core.Ordered
- All Known Subinterfaces:
BaseChatMemoryAdvisor
- All Known Implementing Classes:
MessageChatMemoryAdvisor
Marker interface for advisors that own the memory lifecycle. An advisor implementing
this interface takes responsibility for managing the chat memory, including storing,
retrieving, and updating conversation context.
DefaultChatClient uses this marker to detect
whether a memory advisor is already present in the chain, and to avoid auto-registering
a duplicate when memory management is configured on the ChatClient.
- Since:
- 2.0.0
- Author:
- Christian Tzolov
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.ai.chat.client.advisor.api.Advisor
DEFAULT_CHAT_MEMORY_PRECEDENCE_ORDERFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Method Summary
Methods inherited from interface org.springframework.core.Ordered
getOrder