We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de2f03a commit a879813Copy full SHA for a879813
1 file changed
agents/s02_tool_use.py
@@ -125,8 +125,7 @@ def agent_loop(messages: list):
125
if block.type == "tool_use":
126
handler = TOOL_HANDLERS.get(block.name)
127
output = handler(**block.input) if handler else f"Unknown tool: {block.name}"
128
- print(f"> {block.name}:")
129
- print(output[:200])
+ print(f"> {block.name}: {output[:200]}")
130
results.append({"type": "tool_result", "tool_use_id": block.id, "content": output})
131
messages.append({"role": "user", "content": results})
132
0 commit comments