Conversation state
A customer chats with Ask Lumen on their phone, closes the app, and opens it on their laptop that evening. "What about the one I asked about earlier?" The model has no idea what "earlier" means. It never remembers anything; your app does. Where that memory lives, how much of it you send back, and when you delete it are design decisions you make on purpose.
In this lesson you'll learn to
- Explain why model APIs are stateless and what the app must send on every turn.
- Design storage for sessions, chats and messages, including tool calls, sources and costs.
- Choose how much history to send each turn, using a token budget, recent turns and summaries.
- Weigh provider-stored conversations against your own storage, and plan for retention and deletion.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.