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,22 @@
|
||||
# JdbcSessionRepository on PostgreSQL 16
|
||||
|
||||
service: DefaultSessionService, repository: JdbcSessionRepository
|
||||
tables: [ai_session, ai_session_event, ai_session_index]
|
||||
|
||||
select seq order, event_type, message_type, message_content, synthetic from ai_session_event:
|
||||
1 MESSAGE USER u1 false
|
||||
2 MESSAGE ASSISTANT a1 false
|
||||
3 MESSAGE USER u2 false
|
||||
4 MESSAGE ASSISTANT a2 false
|
||||
5 MESSAGE USER u3 false
|
||||
6 MESSAGE ASSISTANT a3 false
|
||||
7 MESSAGE USER u4 false
|
||||
8 MESSAGE ASSISTANT a4 false
|
||||
9 MESSAGE USER u5 false
|
||||
10 MESSAGE ASSISTANT a5 false
|
||||
11 COMPACTION null null false
|
||||
|
||||
A second SessionService on the same repository (a stand-in for a restart):
|
||||
active view: U:u4 | A:a4 | U:u5 | A:a5
|
||||
whole log: 11 events
|
||||
findByMetadata(principalName, asha): [jdbc-1]
|
||||
Reference in New Issue
Block a user