We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a879813 commit a66558aCopy full SHA for a66558a
1 file changed
agents/s02_tool_use.py
@@ -125,7 +125,8 @@ 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}: {output[:200]}")
+ print(f"> {block.name}:")
129
+ print(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