Skip to content

fix(openai,openai-agents): handle new output item types from latest OpenAI SDK#2923

Merged
axiomofjoy merged 1 commit intomainfrom
fix/openai-sdk-new-output-types
Mar 26, 2026
Merged

fix(openai,openai-agents): handle new output item types from latest OpenAI SDK#2923
axiomofjoy merged 1 commit intomainfrom
fix/openai-sdk-new-output-types

Conversation

@axiomofjoy
Copy link
Copy Markdown
Contributor

Summary

  • Add missing elif branches for 5 new ResponseOutputItem types introduced in the latest OpenAI SDK: function_call_output, computer_call_output, local_shell_call_output, mcp_approval_response, and custom_tool_call_output
  • Fixes mypy assert_never errors in both the openai and openai-agents instrumentors that were failing CI on fix(instrumentation): serialize pydantic model attributes in json mode #2813

Test plan

  • CI passes for py314-ci-openai-latest, py39-ci-openai-latest, py310-ci-openai_agents-latest, and py314-ci-openai_agents-latest

🤖 Generated with Claude Code

…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>
@axiomofjoy axiomofjoy requested a review from a team as a code owner March 26, 2026 19:36
@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Mar 26, 2026
@axiomofjoy axiomofjoy merged commit 75667be into main Mar 26, 2026
22 of 23 checks passed
@axiomofjoy axiomofjoy deleted the fix/openai-sdk-new-output-types branch March 26, 2026 19:43
@mikeldking mikeldking mentioned this pull request Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants