How does ChatGPT's Memory works

I want to understand how ChatGPT knows when and what to pick up and store in memory.

I am intrigued by that feature.

This famous research paper in 2023 implements a memory system for LLM - “Generative Agents: Interactive Simulacra of Human Behavior”