We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
examples/basic/stream_items.py
1 parent 8e1fd7a commit 71fa12cCopy full SHA for 71fa12c
examples/basic/stream_items.py
@@ -31,7 +31,7 @@ async def main():
31
continue
32
elif event.type == "run_item_stream_event":
33
if event.item.type == "tool_call_item":
34
- print("-- Tool was called")
+ print(f"-- Tool was called: {getattr(event.item.raw_item, 'name', 'Unknown Tool')}")
35
elif event.item.type == "tool_call_output_item":
36
print(f"-- Tool output: {event.item.output}")
37
elif event.item.type == "message_output_item":
@@ -47,7 +47,7 @@ async def main():
47
48
# === Run starting ===
49
# Agent updated: Joker
50
- # -- Tool was called
+ # -- Tool was called: how_many_jokes
51
# -- Tool output: 4
52
# -- Message output:
53
# Sure, here are four jokes for you:
0 commit comments