agent loops — tool_use and the request/tool/respond cycle4 / 9
multi-step tools — when one tool isn't enough
Read the editor. The fake model returns three responses in sequence:
search → read_page → end_turn. The loop dispatches each tool
through the TOOLS registry. What single line of text gets printed?
⌘↵ runs the editor.
Booting Python…
Output
[promptdojo:~]$ _