-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Support For CodeAct In The Future? #383
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
Comments
That's pretty cool. No immediate plans, but if you (or anyone in the community) built a good implementation, we'd be down to link to it from our docs. It should be possible without modifying the agents sdk. I'll also try and build somethng if I can find some time! |
I was thinking about this more as I glance through some of the code (with help of AI). Here is what "we" concluded so far. It would seem tricky to integrate directly into the SDK. But thanks for entertaining the idea. I'm going to play with it some more... That's an interesting question about integrating a CodeACT-style approach (like in Based on our exploration of this SDK and the general understanding of these approaches:
Conclusion: While not strictly impossible, extending the current OpenAI Agents SDK to support a CodeACT paradigm wouldn't be a simple plug-in. It would likely involve:
It seems less like an extension and more like building a parallel execution model or significantly refactoring the core components, given the SDK's current reliance on the JSON-based tool-calling capabilities of the underlying OpenAI APIs. |
I briefly read the description, but I wonder if, in the future, we foresee a different Agent class for CodeAct. Similar to how smolagents implements ToolCallingAgent (for JSON tool calling approach) and CodeAgent (for code act style tool calling approach), both inheriting from a single MultiStepAgent class and override the appropriate methods for input, output, handoff, etc. |
Isn't CodeAct just use code executor as one of the tools? |
I'm curious to know if there are any future plans on roadmap to also support the CodeAct approach as an alternative to JSON tool calling approach ?
Like discussed here:
https://x.com/_philschmid/status/1905536547627110727
Looks like lang-graph is giving it a try. https://github.com/langchain-ai/langgraph-codeact
The text was updated successfully, but these errors were encountered: