mirror of
https://github.com/shareAI-lab/analysis_claude_code.git
synced 2026-05-06 16:26:16 +08:00
Revert "Merge pull request #128 from jimpablo/improve-output-format"
This reverts commit86f7ac1410, reversing changes made to3b9b87f027.
This commit is contained in:
@@ -125,8 +125,7 @@ def agent_loop(messages: list):
|
||||
if block.type == "tool_use":
|
||||
handler = TOOL_HANDLERS.get(block.name)
|
||||
output = handler(**block.input) if handler else f"Unknown tool: {block.name}"
|
||||
print(f"> {block.name}:")
|
||||
print(output[:200])
|
||||
print(f"> {block.name}: {output[:200]}")
|
||||
results.append({"type": "tool_result", "tool_use_id": block.id, "content": output})
|
||||
messages.append({"role": "user", "content": results})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user