fix(openai,openai-agents): handle new output item types from latest OpenAI SDK#2923
Merged
axiomofjoy merged 1 commit intomainfrom Mar 26, 2026
Merged
fix(openai,openai-agents): handle new output item types from latest OpenAI SDK#2923axiomofjoy merged 1 commit intomainfrom
axiomofjoy merged 1 commit intomainfrom
Conversation
…penAI SDK Add missing elif branches for function_call_output, computer_call_output, local_shell_call_output, mcp_approval_response, and custom_tool_call_output types to fix mypy assert_never errors with latest openai SDK. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
RogerHYang
approved these changes
Mar 26, 2026
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
elifbranches for 5 newResponseOutputItemtypes introduced in the latest OpenAI SDK:function_call_output,computer_call_output,local_shell_call_output,mcp_approval_response, andcustom_tool_call_outputassert_nevererrors in both theopenaiandopenai-agentsinstrumentors that were failing CI on fix(instrumentation): serialize pydantic model attributes in json mode #2813Test plan
py314-ci-openai-latest,py39-ci-openai-latest,py310-ci-openai_agents-latest, andpy314-ci-openai_agents-latest🤖 Generated with Claude Code