LangGraph: How to properly handle exceptions in a node #30366
VolodymyrGnennyi
announced in
Ask Dosu (Archived)
Replies: 0 comments
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 have a conversational graph which never in END state. Every input from the user is handled by graph and then graph go to interrupted state and waiting another user input.
At some point I may get exception in any node. After that Graph become unusable. Even if I try to invoke it with another user input it immediately returns:
tasks=(PregelTask(id='8ba59d37-b3f8-f2a3-2e4c-16de6fe0658b', name='', path=('__pregel_pull', ''), error="Exception('Huh!')", interrupts=(), state=None, result=None)
Is there any chance to make it work again. Can I rollback last Graph Run somehow?
I can not create new session because I need to continue conversation.
Any best practices here?
Beta Was this translation helpful? Give feedback.
All reactions