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:
@@ -0,0 +1,6 @@
|
||||
# Compaction cuts between turns, so a tool call stays with its result
|
||||
|
||||
Before: U:u1 | A:a1 | U:u2 | A:a2 | U:weather in Pune? | A:[tool call weather] | T:[tool result 31C] | A:31C in Pune. | U:u3 | A:a3
|
||||
compact(keep last 3 EVENTS): covered=8 preserved=2
|
||||
After: U:u3 | A:a3
|
||||
The last 3 events would have started at the assistant reply "31C in Pune.", which is mid-turn, so the cut moved forward to the next turn start (u3).
|
||||
Reference in New Issue
Block a user