Conditional entry point #24

Closed
opened 2026-02-15 17:05:36 -05:00 by yindo · 2 comments
Owner

Originally created by @guidorietbroek on GitHub (Apr 29, 2024).

Is there a away to create a conditional entry point? In Python this is a function, in TS it seems that it don't exist.

Originally created by @guidorietbroek on GitHub (Apr 29, 2024). Is there a away to create a conditional entry point? In Python this is a function, in TS it seems that it don't exist.
yindo closed this issue 2026-02-15 17:05:36 -05:00
Author
Owner

@hinthornw commented on GitHub (May 14, 2024):

You can add conditional edges from the "__start__" node:

builder.addConditionalEdges("__start__", condition, conditionalEdgeMapping)
@hinthornw commented on GitHub (May 14, 2024): You can add conditional edges from the `"__start__"` node: ``` builder.addConditionalEdges("__start__", condition, conditionalEdgeMapping) ```
Author
Owner

@guidorietbroek commented on GitHub (May 18, 2024):

@hinthornw wow, great answer! Didn't know this one exists. Documentation is not yet complete. But I love LangGraph. Thanks for the help!

@guidorietbroek commented on GitHub (May 18, 2024): @hinthornw wow, great answer! Didn't know this one exists. Documentation is not yet complete. But I love LangGraph. Thanks for the help!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#24