Filter code interpreter calls from nested handoff input#3623
Open
its-amann wants to merge 1 commit into
Open
Conversation
Author
|
Added current local verification from head
|
|
TL4uqJFLaRPqACfqHpHzkUU3N38fBs25M9
…------------------ Original ------------------
From: Aman ***@***.***>
Date: Fri,Jun 12,2026 0:31 AM
To: openai/openai-agents-python ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [openai/openai-agents-python] Filter code interpreter calls from nested handoff input (PR #3623)
Summary
Treat code_interpreter_call as summary-only when nested handoff history is enabled.
Keep the code interpreter call visible in the generated conversation summary, but do not forward it as a raw input_items entry to the next agent.
Add a regression test for a reasoning + code interpreter + handoff sequence.
Fixes #985.
Tests
uv run pytest tests/test_handoff_history_duplication.py tests/test_extension_filters.py -q 53 passed in 0.35s uv run ruff check src/agents/handoffs/history.py tests/test_handoff_history_duplication.py All checks passed! uv run ruff format --check src/agents/handoffs/history.py tests/test_handoff_history_duplication.py 2 files already formatted
You can view, comment on, or merge this pull request online at:
#3623
Commit Summary
fd8ae4f Filter code interpreter calls from nested handoff input
File Changes
(2 files)
M src/agents/handoffs/history.py (1)
M tests/test_handoff_history_duplication.py (46)
Patch Links:
https://github.com/openai/openai-agents-python/pull/3623.patch
https://github.com/openai/openai-agents-python/pull/3623.diff
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
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
code_interpreter_callas summary-only when nested handoff history is enabled.input_itemsentry to the next agent.Fixes #985.
Tests