All Questions
Agents And Tool Use medium

The model emits three parallel tool calls (weather, calendar, traffic) in one turn. Your host runs them concurrently, then sends each result back as a separate request the moment it completes. The API returns errors about missing tool results, and the agent behaves erratically. What is the fix?

  1. A Disable parallel calls so the model emits one tool call per turn, since sequential calls are simpler to debug and the latency cost is small.
  2. B Execute the three calls sequentially in the order emitted so the model sees results in the same order it requested them.
  3. C Wait for all three, then return every result in a single message, each matched to its originating tool call ID.
  4. D Return only the first result that completes and drop the others, because the model will re-request any data it still needs.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions