Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional entry point #123

Closed
guidorietbroek opened this issue Apr 29, 2024 · 2 comments
Closed

Conditional entry point #123

guidorietbroek opened this issue Apr 29, 2024 · 2 comments

Comments

@guidorietbroek
Copy link

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.

@hinthornw
Copy link
Contributor

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

builder.addConditionalEdges("__start__", condition, conditionalEdgeMapping)

@guidorietbroek
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants