Langgraph handoff issues when using prebuilt agents #4997
alywonder
started this conversation in
Discussions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to build a multi-agent system. When I build it following the examples, everything works fine. I realize that in most of those examples, each agent is a prebuilt one, mostly react agent.
But when I create my own agent with different graph, I find one curious problem. I see that the handoff is happening, but it does not execute. I can see that the active agent has changed and my next conversation does get handled by that agent.
I have two agents, starter and builder. I have included the prebuilt version and modified version.
Using prebuilt agents only
This case works fine.
Using modified version of builder
I modified the definition of builder as below:
Here step 1-3 works as in the previous case, but when I do a handoff back to starter, it does not run.
The active agent has changed and if I initiate a conversation, I can continue conversation with the starter agent. Please note that the handoff is working perfectly from starter to builder and it is the builder that I changed.
Anyone encountered this problem? Any ideas as to what could be causing this?
Beta Was this translation helpful? Give feedback.
All reactions