-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Feature: Add OpenAIAgent backed by OpenAI Response API #6418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6418 +/- ##
==========================================
+ Coverage 79.55% 79.68% +0.12%
==========================================
Files 225 226 +1
Lines 16686 16964 +278
==========================================
+ Hits 13275 13517 +242
- Misses 3411 3447 +36
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
python/packages/autogen-ext/src/autogen_ext/agents/openai/_openai_agent.py
Outdated
Show resolved
Hide resolved
python/packages/autogen-ext/src/autogen_ext/agents/openai/_openai_agent.py
Outdated
Show resolved
Hide resolved
python/packages/autogen-ext/src/autogen_ext/agents/openai/_openai_agent.py
Show resolved
Hide resolved
python/packages/autogen-ext/src/autogen_ext/agents/openai/_openai_agent.py
Outdated
Show resolved
Hide resolved
python/packages/autogen-ext/src/autogen_ext/agents/openai/_openai_agent.py
Show resolved
Hide resolved
python/packages/autogen-ext/src/autogen_ext/agents/openai/_openai_agent.py
Outdated
Show resolved
Hide resolved
python/packages/autogen-ext/src/autogen_ext/agents/openai/_openai_agent.py
Show resolved
Hide resolved
python/packages/autogen-ext/src/autogen_ext/agents/openai/_openai_agent.py
Outdated
Show resolved
Hide resolved
python/packages/autogen-ext/src/autogen_ext/agents/openai/_openai_agent.py
Outdated
Show resolved
Hide resolved
|
ack all comments. |
@jay-thakur are you working on addressing these? If not I'm happy to pick them up |
|
yes, I am. will address all these comments and raise updated PR. @bassmang |
f97b640 to
6fcb1e4
Compare
|
I have addressed the comments. Kindly review. |
python/packages/autogen-ext/src/autogen_ext/agents/openai/_openai_agent.py
Show resolved
Hide resolved
|
I want to achieve the following web search capability How do I add the |
Why are these changes needed?
This PR introduces a new
OpenAIAgentimplementation that uses the OpenAI Response API as its backend. The OpenAI Assistant API will be deprecated in 2026, and the Response API is its successor. This change ensures our codebase is future-proof and aligned with OpenAI’s latest platform direction.Motivation
AssistantAgentin AgentChat, but is implemented directly on top of the OpenAI Response API.Key Changes
OpenAIAgent, a stateful agent that interacts with the OpenAI Response API.AssistantAgentin AgentChat, ensuring a smooth migration path.openaiPython library for all API interactions.Migration Path
OpenAIAgentto ensure long-term compatibility.References
Related issue number
Closes #6032
Checks