You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: Replace AbstractChatMemoryAdvisor with BaseChatMemoryAdvisor interface
This commit refactors the chat memory advisor architecture to improve design and flexibility:
- Remove AbstractChatMemoryAdvisor class and replace with BaseChatMemoryAdvisor interface
- Move to the api package to better separate interface from implementation
- Remove the abstract builder pattern entirely
- Implement standalone Builder classes in each implementation:
- PromptChatMemoryAdvisor
- MessageChatMemoryAdvisor
- VectorStoreChatMemoryAdvisor
- Make constructors private in implementation classes to enforce builder usage
- Simplify scheduler handling with direct configuration in builder
Copy file name to clipboardExpand all lines: advisors/spring-ai-advisors-vector-store/src/main/java/org/springframework/ai/chat/client/advisor/vectorstore/VectorStoreChatMemoryAdvisor.java
Copy file name to clipboardExpand all lines: models/spring-ai-openai/src/test/java/org/springframework/ai/openai/chat/client/advisor/AbstractChatMemoryAdvisorIT.java
Copy file name to clipboardExpand all lines: models/spring-ai-openai/src/test/java/org/springframework/ai/openai/chat/client/advisor/MessageChatMemoryAdvisorIT.java
Copy file name to clipboardExpand all lines: models/spring-ai-openai/src/test/java/org/springframework/ai/openai/chat/client/advisor/PromptChatMemoryAdvisorIT.java
0 commit comments