Skip to main content

Production Agent

The starter agent gets you running. This template gets you to production: structured state, checkpointed tool calls, input validation, retries, and recovery wiring.

The Structure


Core Loop


Checkpointed Tools


Output Validation

Never trust a model blind — validate structured outputs and retry on failure:

Recovery Wiring


Configuration


Deployment Checklist

  • Scoped API key per service (see Isolation Model)
  • IP allowlisting on production keys
  • Alerts wired to a Slack/PagerDuty channel
  • Failure-injection tests in CI
  • Rollback drill: test rollback(version=-1) on a staging session weekly

Next Steps