AI Cloud Architect

Build Long-running AI agents that pause, resume, and never lose context with ADK

GoogleHow-to by Shubham Saboo and Eric DongGoogle Developers Blog

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Shows how to build an ADK agent that keeps explicit state in a durable state machine and resumes after days of idle time via webhooks and persistent sessions.

Who it is for

Developers building multi-day agent workflows on ADK who need agents to pause and resume without losing context.

Key points

  • State is stored in session state and read each run, not replayed from chat history.
  • Sessions persist in SQLite locally or Cloud SQL in production via DatabaseSessionService.
  • Webhooks wake the agent with a state_delta; the container can scale to zero while idle.
  • Golden evals can simulate idle time by pre-seeding session state.

The same at other vendors

Timeline

  1. Listed inFive guides to building and scaling production-ready AI agents · Google · Blog post
  2. This postBuild Long-running AI agents that pause, resume, and never lose context with ADK

Go deeper