Stop langgraph manually? #203
Replies: 2 comments
-
Like this: https://langchain-ai.github.io/langgraphjs/how-tos/human-in-the-loop/? (Moved to a discussion) I think right now there's a couple things.
You can start and cancel jobs at will ! |
Beta Was this translation helpful? Give feedback.
-
I have a similar use case where I have a chain defined as:
I have some ui that sends a request to my server to abort an ongoing stream. I'd like to force the END node after catching the AbortError so I can get one more checkpoint added with the partial generated content |
Beta Was this translation helpful? Give feedback.
-
Langgraph currently has END node which will terminate the flow, but sometimes, you would want to terminate any time you would want, so that it would manually end the flow. Is there anyway we can do this?
Maybe from callbacks or signals to interrupt the flow and END it?
Beta Was this translation helpful? Give feedback.
All reactions