🤖 AI Hot

Google ADK Voice Agents: Streaming Tools and Scheduling

A
Alex Chen

If you have ever shipped a voice agent, you already know the failure mode: the user asks a question, the model calls a slow API, and the line goes dead. No filler word, no acknowledgment — just silence long enough for the user to assume the connection dropped and hang up. Google’s Agent Development Kit (ADK) shipped the fix for this across mid-2026, and it is the main reason I keep pointing people toward it when they ask me for the best AI tools 2026 for real-time conversational agents. The fix comes in two parts that work together: streaming tools, which push progress updates back to the model while a function is still running, and response scheduling, which controls exactly when a finished tool result is allowed to interrupt the conversation.

This is a practical guide. I’ll explain what each feature does, show the Python code, and cover the parts that are easy to get wrong — including the ones the documentation buries.

What “never goes silent” actually requires

ADK is Google’s framework for building agents, and it now spans five languages: Python, Go, TypeScript, Java, and Kotlin. Live and voice agents are built on the same Agent, tool, and session abstractions as everything else, but they run under a bidirectional streaming connection where the user and the model can talk, listen, and interrupt at the same time.

“Streaming” in ADK actually means three different things, and mixing them up is a common source of confusion. Server-side streaming is a one-way feed from server to client — fine for dashboards, not a conversation. Token-level streaming delivers text word by word, but the client waits for completion before sending more. Bidirectional streaming is the third kind, and it is the only one relevant to voice: both sides speak and listen over a single open connection, and the user can interrupt.

A voice agent built on bidirectional streaming has a harder requirement than a chat agent: it cannot afford to block. In a chat window, a ten-second tool call just shows a spinner. In a live voice conversation, a ten-second tool call sounds exactly like a dropped call. That is the “cold” feeling this article is about, and ADK gives you two ways to keep the conversation warm while a slow tool runs.

Streaming tools: narrate the wait

A streaming tool is a function that keeps running and pushes intermediate results back to the agent, so the model can narrate progress or react to a changing input — a stock price moving, a person entering a video frame — without the user having to ask again.

Making a tool stream is a one-line change: write an async function that yields instead of returns. ADK treats any async-generator tool as non-blocking automatically.

import asyncio
from typing import AsyncGenerator

async def query_sales_database(region: str) -> AsyncGenerator[str, None]:
    """Run the quarterly sales report. Call once; it streams its own updates."""
    yield "Connecting to the warehouse..."
    await asyncio.sleep(4)
    yield "Aggregating by product line..."
    await asyncio.sleep(4)
    yield f"Done. {summarise(region)}"

You pass it to tools=[...] like any other tool. The model receives each yield as a live update, so instead of silence the user hears something like “let me pull those up… still aggregating… got it: EMEA did $4.81M, up 12.4%.” That is the difference between a voice agent that feels alive and one that feels like it is buffering.

This pattern fits anything where progress is worth narrating: RAG pipelines, multi-stage aggregation, and build-and-test runs. The key insight is that the narration is generated by the model from the streamed updates, not hard-coded by you. You write the facts; the model decides how to phrase them in the moment.

One thing that catches people off guard: streaming tools keep running unless the user cancels them. ADK reserves a stop_streaming tool — an empty function the framework intercepts by name — so the user can say “never mind, cancel that” and the stream stops. Wire it up early, because a voice agent that cannot be interrupted is more annoying than one that goes silent.

Response scheduling: decide when results interrupt

Not every wait is worth narrating. A long analytics query, a batch export, a media generation job — progress updates the user did not ask for just interrupt the conversation for no benefit. For those, keep a plain return-once tool and set response_scheduling to move it to the background.

from google.adk.tools import FunctionTool
from google.genai import types

async def export_report(region: str) -> dict:
    """Generate and store the quarterly report. Returns when the export finishes."""
    await run_export(region)  # a long, plain return-once operation
    return {"status": "done", "region": region}

report_tool = FunctionTool(export_report)
report_tool.response_scheduling = types.FunctionResponseScheduling.WHEN_IDLE

While the tool runs, the agent stays free to answer whatever else the user brings up, then folds the result in when it is ready. response_scheduling was added in adk-python 2.4 (the commit landed in June 2026), and support is per-model, so check the supported models list before relying on it.

response_scheduling controls not just when the tool runs but when its finished result reaches the user. There are three values:

ValueBehaviorUse it for
WHEN_IDLEWaits for a natural pause in conversationReports and lookups — the usual choice
INTERRUPTDelivers immediately, cutting off the userAlarms, failures, “the transfer failed”
SILENTEnters context, announced only if relevantBackground info the model may use later

The distinction matters more than it looks. WHEN_IDLE is polite — the model finishes its current sentence or answer before announcing “your flight is booked.” INTERRUPT is for when the user genuinely needs to know right now, like a failed payment. SILENT is for background data the model might reference later without announcing anything.

The documentation notes a caveat worth repeating: even a SILENT tool may still get verbally narrated by the model. To enforce real silence, add an explicit guardrail to the system instructions (something like “when using this tool, execute silently and say nothing”) or use a fire-and-forget backend that never sends a FunctionResponse back at all.

How the pieces fit together in the live loop

ADK runs live agents through run_live(), and the framework handles the function-call plumbing that the raw Gemini Live API would otherwise force you to write yourself. ADK detects the model’s function calls, runs the tools in parallel (with your before/after callbacks), formats the responses, and yields both the call and the response as events. You write the function, not the plumbing.

The same scheduling semantics exist one layer down in the raw Live API, where you pass a scheduling field in the function_response payload. ADK just wraps it in a cleaner object model. If you have used the raw API, the mapping is direct: scheduling="WHEN_IDLE" becomes response_scheduling = FunctionResponseScheduling.WHEN_IDLE.

Under the hood, ADK’s Go runtime is also worth knowing about for high-concurrency voice workloads. Each goroutine starts with a 2 KB stack, so a single instance can multiplex thousands of concurrent streaming requests and tool calls. That is why ADK for Go is the default recommendation for teams that expect real traffic on a voice product rather than a demo.

Video streaming tools

Voice is the common case, but the same machinery drives video. Add an input_stream: LiveRequestQueue parameter to a tool and ADK feeds the user’s real-time input into a dedicated queue for that tool, so it can pull video frames and react to them.

from google.adk.sessions import LiveRequestQueue
from typing import AsyncGenerator

async def watch_scene(input_stream: LiveRequestQueue) -> AsyncGenerator[str, None]:
    latest = None
    while True:
        req = await input_stream.get()
        if req.blob and req.blob.mime_type == "image/jpeg":
            latest = req
        if latest is not None:
            yield classify_frame(latest)

The pattern drains the queue to the newest frame and discards stale ones, yielding only when the answer changes so the agent stays quiet otherwise. This is how you get a voice-and-vision agent that narrates “a person just walked in” at the right moment instead of describing every pixel.

How ADK compares: an AI agent framework comparison

For voice specifically, ADK’s closest competition is not the general-purpose agent frameworks — it is the live-voice toolkits.

LangGraph is the strongest general comparison. It has a graph-based state model and a much larger Python ecosystem, but its real-time audio path requires more assembly than ADK’s run_live() loop. If your team already lives in LangChain and LangGraph, adding voice there is reasonable; if you are starting fresh with a voice-first product, ADK gets you to a working bidirectional agent faster.

OpenAI Realtime API and Agents SDK is excellent for turn-by-turn voice and supports streaming tool calls, but the Realtime API’s function calling gives you less control over how and when responses interrupt compared to ADK’s three-value scheduling model. OpenAI’s strength is model quality and simplicity; ADK’s is the orchestration layer.

LiveKit Agents is the serious open-source alternative for production voice. It gives you transport (WebRTC), voice activity detection, and interruption handling at the infrastructure level, and it is model-agnostic. The honest comparison is that LiveKit handles the telephony and WebRTC side better, while ADK handles the agent-side tool and scheduling semantics more cleanly. Teams often end up running ADK behind LiveKit transport.

Microsoft’s voice stack (via Azure AI) is strongest for enterprises already on Azure, but it is closed and cloud-bound in a way ADK is not — ADK is Apache-2.0-licensed and can point at models from Google and other providers.

If you are choosing a framework for a voice agent in late 2026, the decision mostly comes down to transport versus orchestration. ADK wins when you want the orchestration (streaming tools, response scheduling, sessions) handled for you and you are willing to bring your own transport or use adk web for demos.

Limitations and caveats

ADK’s live-agent surface is newer than its text-agent surface, and it shows in a few places.

First, response_scheduling support is per-model. The feature was added in adk-python 2.4, and not every model supports all three scheduling values. Check the supported models list before you build a feature around INTERRUPT.

Second, the SILENT value is a hint, not a guarantee. As noted, the model may still narrate a SILENT tool unless you add an explicit guardrail. Plan for that in your system instructions.

Third, the Gemini Live API on Google’s Agent Platform does not support streaming FunctionResponse payloads (the will_continue parameter). If your tool produces streaming output when you use the SDK directly, you have to combine all chunks into a single function_response before sending it back. This is a real gotcha if you mix the raw API and ADK in the same codebase.

Fourth, interruption handling is still something you must test heavily. A voice agent that lets the user interrupt is good; one that cuts off the model mid-tool-call and loses state is bad. ADK gives you the primitives (stop_streaming, the live queue), but the UX around barge-in is yours to tune.

Finally, the five-language story is still maturing. The streaming and scheduling features are best-documented and most battle-tested in Python; the Go, TypeScript, Java, and Kotlin ports are catching up but lag on some live-agent edge cases.

Who should use ADK for voice

  • Teams building voice-first or voice-and-vision products who want orchestration handled rather than wiring the raw Live API by hand.
  • Developers already on Google’s Gemini models or GCP who want a single framework across text and voice.
  • Anyone who has watched a voice demo go silent during a slow tool call and wants to fix it properly with streaming tools and scheduling.

Who should NOT use ADK for voice

  • Teams that need carrier-grade telephony, PSTN, and WebRTC management out of the box — pair ADK with LiveKit or Twilio rather than expecting ADK to do transport.
  • Shops standardized on LangChain and LangGraph that only need an occasional voice feature, not a voice-first product.
  • Anyone who needs the absolute lowest-latency turn-taking and is willing to hand-tune the raw Live API for every millisecond.

The bottom line

The reason so many voice agents feel “cold” is not model quality — it is that a synchronous tool call and a real-time conversation are fundamentally incompatible, and most frameworks paper over the gap with a spinner. ADK’s streaming tools and response scheduling are the first time I have seen the gap treated as a first-class design problem rather than an edge case.

Streaming tools answer “how do I keep talking while the tool works.” Response scheduling answers “when is it okay for the result to interrupt.” Together they let you build a voice agent that narrates what it is doing, lets the user change the subject mid-task, and delivers results at a natural pause instead of shouting over the user. That is what “never goes cold” actually means in practice.

If you are prototyping, adk web plus a streaming tool is a half-day experiment. If you are going to production, spend the time on interruption testing and the stop_streaming cancellation path — that is where the real polish lives.

Disclosure: CarCare Guide is reader-supported. When you buy through links on our site, we may earn an affiliate commission at no extra cost to you. Learn more.
A
Alex Chen