Skip to content

Commit d0d4eac

Browse files
committed
Fix typo in handoff event name from 'handoff_occured' to 'handoff_occurred'
1 parent 6e078bf commit d0d4eac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/agents/_run_impl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ def stream_step_result_to_queue(
884884
elif isinstance(item, HandoffCallItem):
885885
event = RunItemStreamEvent(item=item, name="handoff_requested")
886886
elif isinstance(item, HandoffOutputItem):
887-
event = RunItemStreamEvent(item=item, name="handoff_occured")
887+
event = RunItemStreamEvent(item=item, name="handoff_occurred")
888888
elif isinstance(item, ToolCallItem):
889889
event = RunItemStreamEvent(item=item, name="tool_called")
890890
elif isinstance(item, ToolCallOutputItem):

src/agents/stream_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class RunItemStreamEvent:
3131
name: Literal[
3232
"message_output_created",
3333
"handoff_requested",
34-
"handoff_occured",
34+
"handoff_occurred",
3535
"tool_called",
3636
"tool_output",
3737
"reasoning_item_created",

0 commit comments

Comments
 (0)