← Back
Towards Data Science

Google ADK Agents That Pause, Resume, and Wait Hours for a Human

•
#agents
Level:Advanced
For:AI Engineers
✦TL;DR

Google ADK agents can now pause, resume, and wait for extended periods—up to hours—by using webhooks and HTTP 202 receipts, allowing the client connection to be released while the agent continues processing. In a demonstration, a synchronous call kept an RSS agent’s connection open for 83 seconds before the webhook pattern was applied. This design lets developers build long‑running, human‑in‑the‑loop workflows without tying up client resources.

⚡ Key Takeaways

  • A synchronous call kept an RSS agent’s connection open for **83 seconds**.
  • Engineers can offload long‑running work using **webhooks** and **HTTP 202 receipts** to free the client.
  • The approach enables agents to **pause and resume** for **hours**, supporting human‑in‑the‑loop interactions.
  • Integration requires handling **202 response codes** and implementing a **webhook endpoint** to receive completion callbacks.
  • The pattern assumes the client can process asynchronous callbacks; without webhook support the connection would remain blocked.
💡 Why It Matters

By decoupling long‑running agent tasks from the client request lifecycle, engineers can build more responsive applications and support complex, multi‑step workflows that involve human decisions without sacrificing scalability.

✅ Practical Steps

  1. Implement a webhook endpoint that can receive HTTP 202 callbacks from the Google ADK agent.
  2. Modify your agent calls to expect a **202** response and rely on the webhook for completion notification, allowing the original client request to close.
  3. Design your workflow logic to handle pause/resume states based on the asynchronous webhook messages.

Want the full story? Read the original article.

Read on Towards Data Science ↗

More like this

Introducing Gemini 4 Neon

Google DeepMind•#llm

DaisyRose-27B: Pushing the Frontier of Post-Training Efficiency

Hugging Face Blog•#llm

Mathematical proof, powered by AI. And no hallucinations!

Amazon Science•#agents

AI’s GPU focus meets a CPU reality check at Dell and AMD

SiliconANGLE AI•#agents

EXPLORE AI NEWS

Daily hand-picked stories on LLMs, RAG, agents and production AI — curated for engineers who ship.

BROWSE NEWS

GET THE WEEKLY DIGEST

Join engineers getting the Monday signal-over-noise AI breakdown. No spam, unsubscribe anytime.

LEARN AI ENGINEERING

Curated courses, research papers, repos and tutorials built for engineers leveling up in AI.

START LEARNING