Skip to content

Commit a66558a

Browse files
committed
Reapply "Merge pull request #128 from jimpablo/improve-output-format"
This reverts commit a879813.
1 parent a879813 commit a66558a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

agents/s02_tool_use.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ def agent_loop(messages: list):
125125
if block.type == "tool_use":
126126
handler = TOOL_HANDLERS.get(block.name)
127127
output = handler(**block.input) if handler else f"Unknown tool: {block.name}"
128-
print(f"> {block.name}: {output[:200]}")
128+
print(f"> {block.name}:")
129+
print(output[:200])
129130
results.append({"type": "tool_result", "tool_use_id": block.id, "content": output})
130131
messages.append({"role": "user", "content": results})
131132

0 commit comments

Comments
 (0)