Skip to content

Deprecating openai assistant agent. Apply version conditioned import for open ai version < 1.83 - #6827

Merged
Eric Zhu (ekzhu) merged 2 commits into
mainfrom
ekzhu-deprecate-openai-assistant
Jul 17, 2025
Merged

Deprecating openai assistant agent. Apply version conditioned import for open ai version < 1.83#6827
Eric Zhu (ekzhu) merged 2 commits into
mainfrom
ekzhu-deprecate-openai-assistant

Conversation

@ekzhu

@ekzhu Eric Zhu (ekzhu) commented Jul 17, 2025

Copy link
Copy Markdown
Contributor

This PR deprecates OpenAIAssistantAgent. The implications:

  1. If the Python environment has openai<1.83, the class will still be available and usable as before from autogen_ext.agents.openai.OpenAIAssistantAgent, however, it will raise a deprecation warning asking user to migrate to OpenAIAgent.
  2. If the Python environment has openai>=1.83, then the class will be unavaible for import from the autogen_ext.agents.openai module.
  3. For development environment, the module will not be type checked regardless of openai client library version.

See the release note from the openai client library: https://github.com/openai/openai-python/releases/tag/v1.83.0

@codecov

codecov Bot commented Jul 17, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 78.78788% with 7 lines in your changes missing coverage. Please review.

Project coverage is 79.87%. Comparing base (413d8f1) to head (39cb5dc).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...ogen-ext/src/autogen_ext/agents/openai/__init__.py 73.68% 5 Missing ⚠️
...togen_ext/agents/openai/_openai_assistant_agent.py 85.71% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6827      +/-   ##
==========================================
- Coverage   80.81%   79.87%   -0.95%     
==========================================
  Files         233      233              
  Lines       18074    18105      +31     
==========================================
- Hits        14607    14461     -146     
- Misses       3467     3644     +177     
Flag Coverage Δ
unittests 79.87% <78.78%> (-0.95%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ekzhu
Eric Zhu (ekzhu) merged commit ae024e2 into main Jul 17, 2025
69 of 70 checks passed
@ekzhu
Eric Zhu (ekzhu) deleted the ekzhu-deprecate-openai-assistant branch July 17, 2025 23:37
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.

2 participants