Feature: Add OpenAIAgent backed by OpenAI Response API#6418
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:
|
|
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. |
|
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