Cloudflare can remember it for you wholesale

The Register AI
Generative AI

Agent Memory s AI chat scraps off to the side and recalls them when needed Not only is hardware memory scarce these days, but context memory, the conversational data exchanged with AI models, can be an issue too