-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Labels
Description
Describe the bug
From what i have been able to see is when using the session the agent calls add_items
and it is prematurely having the async cancellation before everything is recorded.
I was able to see that RunResultStreaming
calls cleanup_tasks as soon the stream finishes. As a result the session add_items
gets cancelled before the full state has been recorded for the run
openai-agents-python/src/agents/result.py
Line 212 in 0a7bb1b
self._cleanup_tasks() |
Debug information
- Agents SDK version: 0.2.11
- Python version 3.11
Expected behavior
The session should be allowed to complete and save the state
Lin-Rexter and ben-cutler-tamarin