On 19 November 2026 Google shipped Tool Retrieval in preview for the Gemini Interactions API. When an agent is wired to dozens or hundreds of tools, stuffing every full parameter schema into every request inflates input tokens, adds latency, and degrades tool-selection accuracy as the list grows. Tool Retrieval lets the agent keep the entire library on standby. The model sees only names and short descriptions of deferred tools. When it needs one, it issues a tool_search, the API loads the full schema, and the model emits the function_call — all inside the same request.
No separate charge. Works with Gemini 3.6 and later. Server-side search by default (no index to host); client-side is available if you bring your own registry. Deferred schemas stay out of the cached prefix so prefix caching stays stable across turns.
That is a clean win on the context-window side of agent design. It does not move the floor if the agent is also supposed to produce short, timely suggestions while a technical interview or sales call is happening live in another language.
Where the delay actually lives on Windows
A usable dual-track overlay still needs two clean PCM streams that stay separate:
- Local microphone — what you say.
- Loopback of the render endpoint — what the remote party says through Teams, Zoom, Meet, or the browser.
Both must stay in shared-mode WASAPI so the call client keeps the device. Exclusive mode would break the call. The Windows Audio Engine (audiodg.exe + audioeng.dll) mixes, applies any enabled communications enhancements or vendor APOs, and delivers buffers on a fixed period. Typical shared-mode period is 10 ms; the engine often ignores smaller requests under load.
Rough additive budget once samples leave the callback (modern laptop, enhancements off):
| Stage | Typical cost |
|---|---|
| WASAPI shared period | 10 ms |
| Callback → lock-free SPSC ring + format convert | 1–3 ms |
| Resample to 16 kHz mono + lightweight VAD | 2–5 ms |
| Streaming STT first partial (local or remote) | 40–150 ms |
| Optional local polish / suggestion model | 20–80 ms |
| Overlay paint | <16 ms |
Even if the translation or suggestion model itself returns usable text in a few hundred milliseconds, the capture period and the first partial still dominate the user-visible lag. A cloud agent that loads tool schemas on demand is fine for a backend orchestration loop; for a tight overlay that should show a short suggestion while the other person is still talking, you need the partials much earlier.
Practical capture shape that ships
// Shared-mode capture client (mic or loopback).
// Callback does nothing but copy into a lock-free SPSC ring.
// Consumer thread owns resampling, VAD, and the STT or model call.
HRESULT hr = pAudioClient->Initialize(
AUDCLNT_SHAREMODE_SHARED,
flags, // AUDCLNT_STREAMFLAGS_LOOPBACK for render endpoint
hnsPeriod, // request 10 ms or smaller; engine may ignore
0, mixFormat, NULL);
// In the callback:
// Copy GetBuffer samples into ring, ReleaseBuffer, return S_OK.
// Zero allocations, zero model work on the audio thread.
From the ring you can feed:
- A streaming STT (AssemblyAI-style, Deepgram, or local faster-whisper / Whisper.cpp / Windows ML Speech Recognition Task).
- A small local GGUF for translation polish or short suggestion generation.
- Or, if you own the whole stack, an end-to-end model that still has to wait on the same capture path.
Tool Retrieval style deferral is useful if your local agent has a large set of suggestion templates or lookup tools. Keep the hot path (current-turn polish) loaded; defer the long tail. The capture floor does not care.
Tradeoffs that actually matter
Shared mode is non-negotiable if you want the call client to keep working. That locks you into the engine period and any APO latency. Local models remove network RTT and data-retention questions, but they still sit behind the same ring. Cloud STT with aggressive partials can beat a local Whisper on first-token time on a laptop that is already busy with the call, but you pay for the round trip and the privacy surface.
The Tool Retrieval pattern (name + description always visible, schema only on demand) maps cleanly onto a local suggestion engine: keep a short system prompt and the current partial always in context; load domain-specific glossaries or interview-topic tools only when the partial matches a keyword. The latency budget is still dominated by how fast the PCM leaves the WASAPI callback.
Shipping notes
- Measure the period the engine actually gives you (
IAudioClient::GetDevicePeriodand the callback timing). Do not assume the value you requested. - Keep the audio thread to a memcpy. Everything else (resample, VAD, model) on a consumer thread with a lock-free SPSC.
- Prefer 16 kHz mono for the STT path; do the conversion once after the ring.
- If you are BYOK, the same capture path feeds whatever endpoint you point at. The model choice does not change the floor.
Google’s deferral of tool schemas is a real efficiency win for large agent graphs. It does not change the fact that a live dual-track overlay on Windows still spends its first tens of milliseconds inside the audio engine before any model, local or remote, sees a sample.
I'm building Talkaside, a Windows app for job interviews and calls in another language.
Drafted with AI assistance from this project's code and logs.


Top comments (0)