Skip to content

fix(openai-agents): Patch run_single_turn() functions following library refactor#5450

Merged
alexander-alderman-webb merged 17 commits intomasterfrom
webb/openai-agents/run-single-turn
Feb 13, 2026
Merged

fix(openai-agents): Patch run_single_turn() functions following library refactor#5450
alexander-alderman-webb merged 17 commits intomasterfrom
webb/openai-agents/run-single-turn

Conversation

@alexander-alderman-webb
Copy link
Contributor

@alexander-alderman-webb alexander-alderman-webb commented Feb 12, 2026

Description

The AgentRunner._run_single_turn() class method has been moved to the function agents.run_internal.run_loop.run_single_turn().

Patch the new function by re-using existing wrapper logic.

Issues

Reminders

@github-actions
Copy link
Contributor

github-actions bot commented Feb 12, 2026

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


Bug Fixes 🐛

Openai Agents

  • Patch run_single_turn() functions following library refactor by alexander-alderman-webb in #5450
  • Patch models functions following library refactor by alexander-alderman-webb in #5449
  • Patch tool functions following library refactor by alexander-alderman-webb in #5445

Other

  • (celery) Close the connection we're reading driver_type from by sentrivana in #5427

Documentation 📚

  • Document openai-agents control-flow by alexander-alderman-webb in #5447

Internal Changes 🔧

  • (ci) Improve Craft config with title stripping and artifact filtering by BYK in #5444
  • (openai-agents) Avoid calling SDK-internal functions by alexander-alderman-webb in #5437
  • Remove references to unsupported attribute types by alexander-alderman-webb in #5425
  • Pin setuptools for linting and chalice tests by alexander-alderman-webb in #5438

🤖 This preview updates automatically when you update the PR.

@alexander-alderman-webb alexander-alderman-webb changed the title fix(openai-agents): Patch tool functions following library refactor fix(openai-agents): Patch run_single_turn() functions following library refactor Feb 12, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 12, 2026

Codecov Results 📊

14 passed | Total: 14 | Pass Rate: 100% | Execution Time: 5.13s

📊 Comparison with Base Branch

Metric Change
Total Tests 📉 -38
Passed Tests 📉 -38
Failed Tests
Skipped Tests

All tests are passing successfully.

❌ Patch coverage is 0.00%. Project has 14845 uncovered lines.
❌ Project coverage is 24.04%. Comparing base (base) to head (head).

Files with missing lines (179)
File Patch % Lines
utils.py 32.49% ⚠️ 615 Missing and 36 partials
langchain.py 3.28% ⚠️ 590 Missing
openai.py 5.57% ⚠️ 492 Missing
utils.py 0.00% ⚠️ 479 Missing
tracing_utils.py 40.44% ⚠️ 349 Missing and 32 partials
__init__.py 5.08% ⚠️ 374 Missing
scope.py 63.82% ⚠️ 297 Missing and 73 partials
starlette.py 5.34% ⚠️ 337 Missing
transport.py 22.28% ⚠️ 307 Missing and 2 partials
client.py 54.58% ⚠️ 228 Missing and 56 partials
mcp.py 5.24% ⚠️ 253 Missing
anthropic.py 9.19% ⚠️ 247 Missing
transaction_profiler.py 35.52% ⚠️ 216 Missing and 10 partials
__init__.py 3.91% ⚠️ 221 Missing
langgraph.py 5.29% ⚠️ 215 Missing
utils.py 16.08% ⚠️ 214 Missing
tracing.py 65.26% ⚠️ 165 Missing and 42 partials
span_processor.py 0.00% ⚠️ 205 Missing
__init__.py 5.14% ⚠️ 203 Missing
continuous_profiler.py 43.77% ⚠️ 176 Missing and 16 partials
strawberry.py 7.54% ⚠️ 184 Missing
aws_lambda.py 16.50% ⚠️ 167 Missing
spark_driver.py 0.00% ⚠️ 166 Missing
huggingface_hub.py 8.89% ⚠️ 164 Missing
sanic.py 9.60% ⚠️ 160 Missing
aiohttp.py 10.84% ⚠️ 148 Missing
cloud_resource_context.py 0.00% ⚠️ 145 Missing
ai_client.py 0.00% ⚠️ 145 Missing
rust_tracing.py 0.00% ⚠️ 143 Missing
litellm.py 0.00% ⚠️ 138 Missing
litestar.py 9.59% ⚠️ 132 Missing
starlite.py 8.33% ⚠️ 132 Missing
envelope.py 40.82% ⚠️ 116 Missing and 11 partials
falcon.py 8.94% ⚠️ 112 Missing
flask.py 12.50% ⚠️ 112 Missing
spotlight.py 28.47% ⚠️ 103 Missing and 8 partials
asgi.py 20.71% ⚠️ 111 Missing
cohere.py 12.70% ⚠️ 110 Missing
dramatiq.py 0.00% ⚠️ 110 Missing
arq.py 9.92% ⚠️ 109 Missing
asgi.py 0.00% ⚠️ 109 Missing
hub.py 45.60% ⚠️ 105 Missing and 3 partials
agent_run.py 0.00% ⚠️ 107 Missing
logging.py 32.68% ⚠️ 103 Missing and 3 partials
beat.py 8.62% ⚠️ 106 Missing
caching.py 0.00% ⚠️ 106 Missing
utils.py 0.00% ⚠️ 103 Missing
templates.py 0.00% ⚠️ 100 Missing
quart.py 16.10% ⚠️ 99 Missing
wsgi.py 22.66% ⚠️ 99 Missing
gcp.py 0.00% ⚠️ 98 Missing
otlp.py 0.00% ⚠️ 97 Missing
utils.py 13.39% ⚠️ 97 Missing
sessions.py 27.82% ⚠️ 96 Missing
models.py 4.95% ⚠️ 96 Missing
pyramid.py 13.76% ⚠️ 94 Missing
tornado.py 14.55% ⚠️ 94 Missing
__init__.py 0.00% ⚠️ 93 Missing
_wsgi_common.py 28.35% ⚠️ 91 Missing
bottle.py 11.65% ⚠️ 91 Missing
middleware.py 0.00% ⚠️ 90 Missing
agent_run.py 0.00% ⚠️ 90 Missing
stdlib.py 35.82% ⚠️ 86 Missing and 1 partials
runner.py 0.00% ⚠️ 87 Missing
beam.py 0.00% ⚠️ 84 Missing
loguru.py 11.58% ⚠️ 84 Missing
ray.py 0.00% ⚠️ 84 Missing
asyncio.py 0.00% ⚠️ 80 Missing
invoke_agent.py 0.00% ⚠️ 79 Missing
session.py 15.56% ⚠️ 76 Missing
clickhouse_driver.py 17.58% ⚠️ 75 Missing
pure_eval.py 0.00% ⚠️ 73 Missing
worker.py 22.58% ⚠️ 72 Missing
ariadne.py 14.46% ⚠️ 71 Missing
gql.py 10.13% ⚠️ 71 Missing
fastapi.py 15.85% ⚠️ 69 Missing
monitoring.py 17.07% ⚠️ 68 Missing
graphene.py 12.82% ⚠️ 68 Missing
transactions.py 0.00% ⚠️ 67 Missing
_queue.py 26.67% ⚠️ 66 Missing
rq.py 15.38% ⚠️ 66 Missing
huey.py 17.72% ⚠️ 65 Missing
boto3.py 14.86% ⚠️ 63 Missing
streaming.py 0.00% ⚠️ 62 Missing
api.py 59.06% ⚠️ 61 Missing
httpx.py 16.44% ⚠️ 61 Missing
chalice.py 16.18% ⚠️ 57 Missing
propagator.py 0.00% ⚠️ 57 Missing
server.py 0.00% ⚠️ 56 Missing
spark_worker.py 0.00% ⚠️ 56 Missing
__init__.py 7.02% ⚠️ 53 Missing
graph_nodes.py 0.00% ⚠️ 52 Missing
gnu_backtrace.py 0.00% ⚠️ 51 Missing
_async_common.py 0.00% ⚠️ 51 Missing
serializer.py 80.11% ⚠️ 37 Missing and 13 partials
socket.py 0.00% ⚠️ 50 Missing
views.py 0.00% ⚠️ 50 Missing
tools.py 0.00% ⚠️ 49 Missing
_batcher.py 41.25% ⚠️ 47 Missing
invoke_agent.py 0.00% ⚠️ 46 Missing
traces.py 47.06% ⚠️ 45 Missing
_asgi_common.py 16.67% ⚠️ 45 Missing
signals_handlers.py 0.00% ⚠️ 44 Missing
utils.py 22.22% ⚠️ 42 Missing and 1 partials
threading.py 62.11% ⚠️ 36 Missing and 6 partials
client.py 0.00% ⚠️ 40 Missing
executing.py 0.00% ⚠️ 38 Missing
client.py 0.00% ⚠️ 38 Missing
_span_batcher.py 35.71% ⚠️ 36 Missing
serverless.py 0.00% ⚠️ 36 Missing
server.py 0.00% ⚠️ 35 Missing
sys_exit.py 0.00% ⚠️ 32 Missing
launchdarkly.py 0.00% ⚠️ 31 Missing
integration.py 0.00% ⚠️ 30 Missing
trytond.py 0.00% ⚠️ 29 Missing
error_tracing.py 0.00% ⚠️ 29 Missing
scrubber.py 73.91% ⚠️ 18 Missing and 10 partials
tools.py 0.00% ⚠️ 27 Missing
ai_client.py 13.33% ⚠️ 26 Missing
execute_tool.py 0.00% ⚠️ 26 Missing
_openai_completions_api.py 19.35% ⚠️ 25 Missing
_werkzeug.py 11.11% ⚠️ 24 Missing
typer.py 0.00% ⚠️ 24 Missing
tasks.py 0.00% ⚠️ 24 Missing
_compat.py 41.03% ⚠️ 23 Missing
monitor.py 67.21% ⚠️ 20 Missing and 3 partials
__init__.py 84.44% ⚠️ 14 Missing and 9 partials
sqlalchemy.py 84.62% ⚠️ 12 Missing and 11 partials
statsig.py 0.00% ⚠️ 23 Missing
logger.py 43.59% ⚠️ 22 Missing
decorator.py 37.14% ⚠️ 22 Missing
_log_batcher.py 0.00% ⚠️ 21 Missing
attachments.py 27.59% ⚠️ 21 Missing
dedupe.py 55.00% ⚠️ 18 Missing and 3 partials
unraisablehook.py 0.00% ⚠️ 21 Missing
openfeature.py 0.00% ⚠️ 20 Missing
execute_tool.py 0.00% ⚠️ 20 Missing
unleash.py 0.00% ⚠️ 19 Missing
_lru_cache.py 43.33% ⚠️ 17 Missing and 1 partials
model_request.py 0.00% ⚠️ 18 Missing
redis_cluster.py 50.00% ⚠️ 17 Missing
pymongo.py 91.53% ⚠️ 10 Missing and 6 partials
utils.py 0.00% ⚠️ 16 Missing
atexit.py 56.25% ⚠️ 14 Missing and 1 partials
excepthook.py 56.25% ⚠️ 14 Missing and 1 partials
feature_flags.py 56.25% ⚠️ 14 Missing
_init_implementation.py 45.83% ⚠️ 13 Missing
__init__.py 27.78% ⚠️ 13 Missing
types.py 0.00% ⚠️ 12 Missing
caches.py 89.83% ⚠️ 6 Missing and 5 partials
_types.py 66.67% ⚠️ 10 Missing
api.py 37.50% ⚠️ 10 Missing
utils.py 41.18% ⚠️ 10 Missing
handoff.py 0.00% ⚠️ 10 Missing
utils.py 94.67% ⚠️ 4 Missing and 6 partials
metrics.py 47.06% ⚠️ 9 Missing
_metrics_batcher.py 65.00% ⚠️ 7 Missing
consts.py 0.00% ⚠️ 7 Missing
_openai_responses_api.py 33.33% ⚠️ 6 Missing
debug.py 91.30% ⚠️ 2 Missing and 2 partials
consts.py 0.00% ⚠️ 4 Missing
__init__.py 20.00% ⚠️ 4 Missing
__init__.py 0.00% ⚠️ 4 Missing
_sync_common.py 96.00% ⚠️ 2 Missing and 2 partials
__init__.py 0.00% ⚠️ 3 Missing
__init__.py 40.00% ⚠️ 3 Missing
__init__.py 0.00% ⚠️ 3 Missing
__init__.py 0.00% ⚠️ 3 Missing
rb.py 70.00% ⚠️ 3 Missing
redis.py 85.00% ⚠️ 3 Missing
queries.py 93.55% ⚠️ 2 Missing and 1 partials
__init__.py 0.00% ⚠️ 3 Missing
consts.py 99.16% ⚠️ 2 Missing
argv.py 100.00% ⚠️ 2 partials
modules.py 94.12% ⚠️ 1 Missing and 1 partials
agent_workflow.py 71.43% ⚠️ 2 Missing
__init__.py 93.10% ⚠️ 2 Missing
consts.py 0.00% ⚠️ 1 Missing
consts.py 0.00% ⚠️ 1 Missing
Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
- Coverage    25.75%    24.04%    -1.71%
==========================================
  Files          189       188        -1
  Lines        19769     19543      -226
  Branches      6408      7120      +712
==========================================
+ Hits          5090      4698      -392
- Misses       14679     14845      +166
- Partials       431       377       -54

Generated by Codecov Action

@alexander-alderman-webb alexander-alderman-webb marked this pull request as ready for review February 12, 2026 10:38
@alexander-alderman-webb alexander-alderman-webb requested a review from a team as a code owner February 12, 2026 10:38
Base automatically changed from webb/openai-agents/model-patches to master February 13, 2026 13:34
@alexander-alderman-webb alexander-alderman-webb merged commit 14e3e0a into master Feb 13, 2026
160 of 166 checks passed
@alexander-alderman-webb alexander-alderman-webb deleted the webb/openai-agents/run-single-turn branch February 13, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants