The event loop

ADK's runtime is a cooperative loop. Your agent yields an Event and pauses, the Runner commits it, then your agent resumes. Watch the hand-off, a dirty read that gets lost, and how streaming chunks are treated.

10 minPro

Checking your access…

This is a Pro lesson

Sign in to continue. Pro members get every animated lesson, its code and its quiz, across ADK, Agent Platform, Agent QA and CX Agent Studio.

Get Pro for ₹999

You're signed in, but this lesson is part of Pro

Get every Pro lesson, its code and its quiz for ₹999, once. Lifetime access, including lessons added later.

Unlocking your lesson…

If this doesn't change in a moment, reload the page.

In this module: Runtime

  1. The event loop How the Runner and agents hand control back and forth. Pro
  2. Runtime config Tuning a run. Pro
  3. Cancel and resume runs Stopping safely and picking up later. Pro
  4. Ambient agents Agents that run in the background. Pro