-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Support for Orchestrating Agents: Routines and Handoffs like it was done in swarm #3233
Comments
If no additional API changes are needed into SDK, it would be nice to have some blog post or page in DOCS, showing how to make it the right and elegant way. Have a good day. Cheers |
+1, id love for a natively supported feature for this |
Second this... it is not clear what the best solution is for constructing langgraph like state structures where we stream results and state from multiple llm calls... An example would be awesome. |
GRAPHS like Langgraph would be tremendously useful. I keep going back and forth mentally on keeping with VercelAI tools which have awesome streaming and client/server orchestration, in favour of losing that benefit for the much more flexible graph/node/edges options LangGraph provides. |
Its not that setting up the functions, connections, and state is difficult without langgraph. Its getting the right things to stream to the front end. Returning stream from A, then the tool of B, then back to A, then to C, then streaming final response D - all as a single response. A centralized StreamController would be awesome here. |
Feature Description
Hey there!
OpenAI recently released their framework on Orchestrating Agents - Swarm. Full link to the post: https://cookbook.openai.com/examples/orchestrating_agents#handoff-functions
I tried to use Claude to adapt to my stack, with AI SDK, hoping it will work using AI SDK's
tools
property, but it didn't work that well. Seems like there is still need to make some hacks and workarouds. It would be so nice if AI SDK would somehow provide an API to implement such swarm more elegantly.Use Case
Well it would be very nice to organize tools by agents. So it would be like a seperation of concerns, where each agent would have it's own system prompt, and tools, and have full context of conversation of all agents that were used.
Additional context
Here is Claude generated code for to somehow use with AI SDK. I didn't run this code, and i expect it to not work. But it gives some idea of ugly hacky solution.
The text was updated successfully, but these errors were encountered: