Asked about Memory across sessions
Why not store the whole conversation history as memory?
An answer that works
It recreates the context problem at larger scale: expensive to include and mostly irrelevant. Distilled facts and decisions are what is worth carrying between sessions.
Reading an answer is not being able to give one. The section that teaches this is Memory across sessions, 4 hours of Context management.
Learn this properlyAlso asked about Context management
How do you handle a conversation that outgrows the context window?What gets lost when you compact a conversation, and why does it matter?Why not just use a model with a larger context window?How would you give an assistant long-term memory?A user says the assistant is confidently wrong about their project. How do you debug it?