Replies: 2 comments 2 replies
-
Confusingly, |
Beta Was this translation helpful? Give feedback.
1 reply
-
I removed graph.add_edge("eval", "generate") and it worked. Thanks |
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.
-
I am using Langgraph to create a state graph, but I'm encountering an issue where the END condition in my conditional edge is not terminating the execution as expected. Instead of stopping at the END node, the graph continues to loop through the generate node even when should_continue returns "END."
Pyhton 3.12.4
Langgraph 0.2.12
Here is my reproducible code:
Then I call it like this:
logs:
INFO:root:some keywords. INFO:root:some results....
INFO:root:some evaluation....
INFO:root:END. INFO:root:some new keywords....
INFO:root:some results....
INFO:root:some evaluation....
INFO:root:END. INFO:root:some new keywords....
INFO:root:some results....
INFO:root:some evaluation....
INFO:root:CONTINUE. INFO:root:some new keywords....
INFO:root:some results....
INFO:root:some evaluation....
INFO:root:CONTINUE. INFO:root:some new keywords....
INFO:root:some results....
INFO:root:some evaluation....
INFO:root:CONTINUE. INFO:root:some new keywords....
INFO:root:some results....
INFO:root:some evaluation....
INFO:root:CONTINUE. INFO:root:some new keywords....
...
INFO:root:some results....
INFO:root:some evaluation....
INFO:root:CONTINUE. INFO:root:some new keywords....
Eventually, it breaks with the following error:
GraphRecursionError: Recursion limit of 25 reached without hitting a stop condition. You can increase the limit by setting the recursion_limit config key.
I also tried, with no luck
Beta Was this translation helpful? Give feedback.
All reactions