AI
How to Build Voice Agents That Stay Engaged During Long Operations
Google's Agent Development Kit introduces streaming tools and background execution to eliminate silence during database queries and keep voice assistants conversational.
Google Developers Blog (AI)
A familiar problem plagues voice agents: when a backend query takes 13 seconds to complete, users hear 13 seconds of dead air and assume the call has dropped. Google's Agent Development Kit (ADK) addresses this by letting developers run slow tools asynchronously while the agent remains conversational—a shift that cuts response latency from 14.4 seconds to 1.2 seconds in real benchmarks.
The Problem with Blocking Tool Calls#
Unlike text-based interfaces where loading spinners signal active work, voice conversations demand continuous presence. When an agent pauses to execute a tool, the silence creates friction: users perceive the interaction as broken rather than busy. Prompting the model to say "I'm working on it" offers no relief because the execution loop blocks until the tool returns, preventing the model from speaking at all.
Streaming Tools: Narrating Progress#
ADK enables non-blocking patterns by converting standard tool functions into async generators. Rather than returning a single result after all work completes, streaming tools yield intermediate updates as operations progress. In code, this requires changing only return to yield.
When a query consists of discrete stages—connecting to a database, scanning records, aggregating results, formatting output—the agent can narrate each milestone as it happens. The model receives an immediate acknowledgment and speaks right away: "Looking into the EMEA figures for you now." As the tool yields progress updates, the agent paraphrases them in real time ("Connecting to the warehouse," "Aggregating product line data"), keeping the conversation fluid and natural.
A beneficial side effect: users can ask follow-up questions while the original query runs in the background, and receive answers without stalling the entire session.
Background Execution: Silent Progress#
Not every operation warrants live commentary. If a user asks for a report and immediately shifts topics, constant status interruptions feel intrusive. ADK supports quiet background execution through two approaches:
An async generator that yields only once—when the task completes—gives an immediate verbal acknowledgment while running computation silently. Alternatively, developers can wrap standard coroutines in a and set to , which delivers results during natural pauses rather than interrupting ongoing speech.

