Files
spring-ai/session-memory/output/03-compaction-keeps-tool-turns.txt
T

7 lines
423 B
Plaintext

# 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).