Replies: 1 comment
-
hi @octadion! yes, the recommended way would be to use def node_a(state):
...
goto = "node_b" if state["X"] else "node_c"
...
return Command(goto=goto, update={...}) check out the concept docs here https://langchain-ai.github.io/langgraph/concepts/low_level/#command and how-to guide here https://langchain-ai.github.io/langgraph/how-tos/command/ |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
hi! if it’s possible to conditionally skip nodes. For example, if the state X is False, I want to skip node B and go directly from node A to node C. Is this kind of behavior supported in LangGraph?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions