Add chat-memory module: MessageWindowChatMemory, JDBC and Redis repositories, per-user conversation IDs
Real PostgreSQL 16 and Redis Stack 7.4; 24 tests write output/01-24. Covers the 20-message default window with no property, the 36-character conversation_id, tool messages dropped by JdbcChatMemoryRepository, concurrent add() on one conversation, a 1.x table under the 2.0 repository, the Redis repository silently backing off for a custom ChatMemory, and the removal of PromptChatMemoryAdvisor. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Ja4jkzrbQ4LQZBNrb5mkZE
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# What JdbcChatMemoryRepository.saveAll keeps
|
||||
|
||||
saveAll() given 4 messages:
|
||||
USER Weather in Mumbai?
|
||||
ASSISTANT (tool call weather)
|
||||
TOOL (tool call weather)
|
||||
ASSISTANT 31C and humid.
|
||||
|
||||
findByConversationId() returns 2:
|
||||
USER Weather in Mumbai?
|
||||
ASSISTANT 31C and humid.
|
||||
|
||||
Logged by the repository: WARN JdbcChatMemoryRepository does not support tool call messages. Some messages were filtered out for conversation: tool-conv
|
||||
Reference in New Issue
Block a user