Which mitigation has the largest impact on agent-loop latency when tool calls are independent?
Each agent turn re-prefills the whole transcript then waits on the tool, so latency compounds with turn count; parallel calls collapse the dominant tool-time axis.
Imagine asking a research assistant a question that needs three library books. A slow assistant fetches one book, rereads everything written so far, walks back, fetches the next, rereads everything again, and repeats. Most of the wasted time is the walking, not the reading. If the three books are unrelated, you could send the assistant to grab all three in one trip instead of three. That single change saves far more time than asking them to read a little faster. Each round trip also forces a reread of everything so far, so the more trips you make, the worse it gets. Fewer, parallel trips beat a faster reader almost every time.
Detailed answer & concept explanation~8 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
3 min: agent loop anatomy + why latency compounds with turns + tool time dominates + parallel calls collapse the tool axis + prompt caching collapses the prefill axis + dependency caveat.
Real products, models, and research that use this idea.
- Anthropic's Claude Opus 4.7 tool-use API returns multiple tool_use blocks in one turn so a client runtime can execute independent calls concurrently.
- OpenAI's function-calling and the GPT-5.5 Responses API emit parallel tool calls in a single assistant message for independent lookups.
- Anthropic and OpenAI prompt caching cut the re-prefill cost of a long, stable system prompt to roughly a tenth of input price across agent turns.
- LangGraph and the OpenAI Agents SDK schedule independent tool nodes concurrently, collapsing a fan-out of N retrieval calls to about one call's latency.
- Model Context Protocol servers expose tools whose network round trip often dominates an agent turn far more than model decode time.
What an interviewer would ask next. Try answering before peeking at the approach.
QWhy does prompt caching help an agent loop more than a single one-shot completion?
QWhen can independent-looking tool calls NOT be parallelized safely?
QHow would you decide whether decode speed or tool time is your real bottleneck?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Optimizing per-token decode speed (FP8 cache, smaller model) while ignoring that tool execution and network round trips, multiplied by the number of turns, dominate the wall clock.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.