Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

State & Storage

This path is for teams moving beyond stateless demos.

Use this section to decide

  • where thread and run data should live
  • how state is keyed and merged
  • how much context should reach the model each turn
  1. Use File Store or Use Postgres Store to choose a persistence backend.
  2. State Keys and Thread Model to understand state layout and lifecycle.
  3. Optimize Context Window when context size starts to matter.