Replies: 3 comments 5 replies
-
Hey, thanks for the kind words! Really glad to hear this has been helpful. There are a few options for how to handle the confirmation flow:
I’d probably start with (1) if I was implementing this myself for a simple case. If I had multiple human in the loop steps, I might use (2) since it requires a bigger up front change but seems easier to generalize. Hope this helps! https://langchain-ai.github.io/langgraph/concepts/human_in_the_loop/ |
Beta Was this translation helpful? Give feedback.
-
Hi Josh, Great toolkit, been using it to guide me past few weeks. I have a question around implementation number 2 above. I have an issue restarting the graph after an interrupt, perhaps you can shed some light or offer a workaround to my problem. My set up is a graph backend, langserve/fast API endpoint and streamlit front end.
I dont know if I am accessing state or handling the requests in the cleanest way. Although the graph appears to update with my method. The biggest issue however is restarting the graph and trying to keep some consistency in the front end. I can restart the graph from the endpoint file using astream_events but this doesnt stream events to the front end and would need some type of websocket or similar connection bloating my UI code. I am struggling to use any method to invoke with 'None' from streamlit as its failing validation deep in the langserve libraries by the looks of it and I cant muster up a workaround atm. Any help or signposting would be appreciated. |
Beta Was this translation helpful? Give feedback.
-
Hi, I just added a PR with a first version. #117 |
Beta Was this translation helpful? Give feedback.
-
Hi, very nice work! It has been a great help in getting me into the world of agents and langgraph and I am still getting to know this project.
I'm building a simple chatbot to manage restaurant reservations and I'm combining it with your front-end. I use human-in-the-loop to ask the user for confirmation in the use of certain tools, any suggestions on how to apply it to your project? Thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions