capstone — ship the system9 / 12
wire it all together — a cli agent in 12 steps
Build the tool runner. The starter has a tools dict mapping tool
names to functions. Write a function run_tool(name, args) that:
- Returns
"unknown tool"ifnameis not intools. - Otherwise calls
tools[name](args)and returns the result.
Then call run_tool("read_file", {"path": "todo.txt"}) and print
the result.
Expected output:
contents of todo.txt
⌘↵ runs the editor.
Booting Python…
Output
[promptdojo:~]$ _