Parallel tool calls
Shows patterns for handling multiple tool calls in a single turn, and introduces a “batch tool” wrapper idea.
- Upstream notebook:
tool_use/parallel_tools.ipynb
What to focus on
- Iterating
response.contentand handling multipletool_useblocks - Returning
tool_resultwith correcttool_use_id - Batch tool pattern: bundling multiple invocations to reduce turns
Run locally
make test-notebooks NOTEBOOK=tool_use/parallel_tools.ipynb