Autogen :Why is my first node in GraphFlow called twice? #6595
-
Hi everyone, I'm building a GraphFlow using autogen-agentchat and running into an issue where the first node (start_agent) is being executed twice, even though I’ve already defined conditional branching. Here is a simplified version of my graph setup:
Despite that, I see two outputs from start_agent, both "ok" and "error", being generated back-to-back. This causes both conditional branches to trigger, here is my logs
I'm not sure why this happens. I expect only one of the edges to be taken based on the single output from start_agent. Any idea what I might be doing wrong here? Do I need to add some filter or condition to prevent duplicate execution of the entry node? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Which version are you using? The latest code in main has updated the graph flow execution logic |
Beta Was this translation helpful? Give feedback.
I think the next version should fix this.