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
Recommended order
- Use File Store or Use Postgres Store to choose a persistence backend.
- State Keys and Thread Model to understand state layout and lifecycle.
- Optimize Context Window when context size starts to matter.