Add session-memory module: Spring AI 2.1 Session API (event log, turn-aware windows, compaction with summarizer, SessionAdvisors, JDBC on PostgreSQL 16) with 14 transcripts and the 2.0 ChatMemory deprecation warnings from javac. Spring Boot 4.1.1, Spring AI 2.1.0, Java 25.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b6jDW7zqoKDMTRrCyq
This commit is contained in:
Claude
2026-11-22 18:39:32 +05:30
parent 0006167c24
commit 7612fca082
39 changed files with 1149 additions and 0 deletions
@@ -0,0 +1,19 @@
# javac -Xlint:deprecation on the Spring AI 2.0 ChatMemory setup, compiled against Spring AI 2.1.0
$ javac -Xlint:deprecation -cp <2.1.0 classpath> src/broken/LegacyChatMemory.java
LegacyChatMemory.java:12: warning: [removal] ChatMemory in org.springframework.ai.chat.memory has been deprecated and marked for removal
ChatMemory memory = MessageWindowChatMemory.builder()
^
LegacyChatMemory.java:13: warning: [removal] InMemoryChatMemoryRepository in org.springframework.ai.chat.memory has been deprecated and marked for removal
.chatMemoryRepository(new InMemoryChatMemoryRepository())
^
LegacyChatMemory.java:12: warning: [removal] MessageWindowChatMemory in org.springframework.ai.chat.memory has been deprecated and marked for removal
ChatMemory memory = MessageWindowChatMemory.builder()
^
LegacyChatMemory.java:17: warning: [removal] MessageChatMemoryAdvisor in org.springframework.ai.chat.client.advisor has been deprecated and marked for removal
.defaultAdvisors(MessageChatMemoryAdvisor.builder(memory).build())
^
LegacyChatMemory.java:20: warning: [removal] ChatMemory in org.springframework.ai.chat.memory has been deprecated and marked for removal
.advisors(a -> a.param(ChatMemory.CONVERSATION_ID, conversationId))
^
5 warnings