agent loops — tool_use and the request/tool/respond cycle5 / 9
multi-step tools — when one tool isn't enough
The agent loop knows the model picked a tool, but the dispatch line
is unfilled. Look up the function in TOOLS by the tool's name
and call it with the tool's input dict unpacked as kwargs.
Fill in the missing expression so the loop prints 3 hits for ramen.
Expected output:
3 hits for ramen
⌘↵ runs the editor.
Booting Python…
Output
[promptdojo:~]$ _