This commit is contained in:
Timothy Jaeryang Baek committed 2026-11-16 14:21:04 +09:00
1 parent a6d77fbe6a
commit 6f04d48166
7 files changed
+27 -17

No files matched your search

@@ -113,7 +113,7 @@ async def run(transport, output, prompt, images, options):
elif block['type'] == 'thinking' and not streamed_thinking:
await output.text(block['thinking'], reasoning=True)
elif block['type'] == 'tool_use':
await output.tool(block['id'], block['name'], block['input'], native=block)
await output.tool(block['id'], block['name'], block['input'], provider_data=block)
elif kind == 'user':
blocks = message.get('message', {}).get('content', [])
for block in blocks if isinstance(blocks, list) else []:
@@ -123,7 +123,7 @@ async def run(transport, output, prompt, images, options):
block['tool_use_id'],
previous.get('name', 'agent_tool'),
json.loads(previous.get('arguments', '{}')),
native=block,
provider_data=block,
result=block.get('content'),
done=True,
)