Skip to content

Commit 58cc241

Browse files
authored
Update .changeset/fix-streaming-agent-end-lifecycle.md
1 parent 59abedb commit 58cc241

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.changeset/fix-streaming-agent-end-lifecycle.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,4 @@
22
'@openai/agents-core': patch
33
---
44

5-
Fix streaming agents not calling agent_end lifecycle hook
6-
7-
Streaming agents were not emitting the `agent_end` lifecycle event when completing execution, while non-streaming agents were correctly emitting this event. This fix ensures that both the agent instance and the runner emit the `agent_end` event for streaming agents when they produce a final output, maintaining consistency with the non-streaming behavior.
8-
9-
This resolves the issue where users could not collect usage information or perform cleanup tasks at the end of streaming agent runs using the `agent_end` event handler.
5+
Fix #371 streaming agents not calling agent_end lifecycle hook

0 commit comments

Comments
 (0)