Are conditional edges executed before the previous node finishes? #3201
Replies: 1 comment 1 reply
-
They execute afterwards, but the Send targets receive exactly what you put in the send payload, which does not include the LLM result in your example code (your edge is just sending the value for c) |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hello! I am new to LangGraph and I am not sure how does the library manage the execution of the nodes. I have the following case, where I am using the Send class to create more executions based on some defined logic.
The node before using the Send conditional_edge has a LLM call (node_with_llm), and all the nodes after the conditional edge (last_node) are using that response as a context.
But the thing is that apparently
conditional_edge
executes beforenode_with_llm
finishes and update the state with this context.My graph:

Here is the code to Replicate
Beta Was this translation helpful? Give feedback.
All reactions