Asked about Failures, parallel calls and keeping results small
How do you handle a model requesting several tools in one turn?
An answer that works
Execute them concurrently since they are usually network-bound, then return all results together in a single message. Splitting them across messages trains the model out of making parallel calls.
Reading an answer is not being able to give one. The section that teaches this is Failures, parallel calls and keeping results small, 4 hours of Tool calling.
Learn this properlyAlso asked about Tool calling
Walk me through what happens when a model calls a tool.What makes a good tool description?How many API calls does one tool-using question take?Why use an enum in a parameter schema?A tool throws an exception. What should happen?Why does the size of a tool result matter?How do you stop an agent taking a destructive action?