Files
Claude 823f6fac5b 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
2026-09-24 15:56:47 +00:00

19 lines
907 B
Plaintext

# Input tokens per call, 30 turns, four pruning strategies
Encoding: o200k_base (JTokkit estimate). Each turn: ~25-token question, ~40-token answer, ~6-token system prompt.
turn unbounded window=10 window=20 budget=400tok
1 26 26 26 26
2 79 79 79 79
5 238 238 238 238
10 503 291 503 397
11 556 291 556 397
15 768 291 556 397
20 1033 291 556 397
21 1086 291 556 397
25 1298 291 556 397
30 1563 291 556 397
sum 23835 7935 13765 10426
sum as % of unbounded: window=10 33%, window=20 58%, budget=400tok 44%