These guides are for developers building Python agents that collect information across multiple turns. Start by making state updates predictable, then use the lessons from a production migration to design checks that catch behavioral drift.
Start here
- Persist AI agent state in Python uses an offline replay to reproduce a null overwrite, reload a JSON snapshot between turns, and explain why an agent can save its last question.
- Anthropic’s Rust API migration explains why passing tests was insufficient and how the team used production traffic to check behavior.
What to verify in your own agent
Replay a short follow-up against a saved case. Confirm that omitted fields keep their old values, that accepted updates survive a reload, and that the next request includes the question the user is answering.