fix(openai-agents): Patch correct run_single_turn_streamed reference - #7032
Merged
alexander-alderman-webb merged 20 commits intoAug 6, 2026
Merged
Conversation
run_single_turn_streamed reference
Contributor
Codecov Results 📊✅ 99162 passed | ⏭️ 6479 skipped | Total: 105641 | Pass Rate: 93.87% | Execution Time: 352m 33s 📊 Comparison with Base Branch
All tests are passing successfully. ✅ Patch coverage is 100.00%. Project has 2499 uncovered lines. Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 89.96% 89.99% +0.03%
==========================================
Files 193 193 —
Lines 24954 24955 +1
Branches 9004 9004 —
==========================================
+ Hits 22448 22456 +8
- Misses 2506 2499 -7
- Partials 1434 1436 +2Generated by Codecov Action |
alexander-alderman-webb
marked this pull request as ready for review
August 4, 2026 15:10
ericapisani
approved these changes
Aug 4, 2026
alexander-alderman-webb
deleted the
webb/fix-run_single_turn_streamed-patch
branch
August 6, 2026 07:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The
run_single_turn_streamed()function is used inagents.run_internal.run_loop, unlikerun_single_turn(). Seehttps://github.com/openai/openai-agents-python/blob/19e364c17344905ce6d17f41ea4fe084cba20388/src/agents/run_internal/run_loop.py#L1231
The integration previously created a reference that doesn't otherwise exist in
openai-agents.Add assertions on the Invoke Agent span in
test_run_streamed_tool_execution_span().Add a new
test_run_streamed_error_handling()test, adapted from thetest_error_handling()test withAgentRunner.run()replaced byAgentRunner.run_streamed().Issues
Reminders
uv run ruff.feat:,fix:,ref:,meta:)