Where Should AI Agent State and Memory Live? A Crash Test
I killed my agent in the middle of a write, then reloaded its memory. Three kinds of memory behaved in three different ways.
Video #237 ยท Enterprise architecture and AI agents
Steps in the video
Files
- compare.py (38 lines)
- stores.py (56 lines)
- worker.py (9 lines)
Tested with
Python 3.12.15
What this does not show
A staged crash and an arranged collision on one laptop; the half-written JSON file is written that way on purpose; an atomic rename was not tested; Redis and server databases were not tested; the stores hold plain text only.
Sources
Learning IT by Example.