Human in Loop and FastAPI Integration #2911
Replies: 3 comments 9 replies
-
@BharahthyKannan Would you like to update us with what you have reached in this issue? |
Beta Was this translation helpful? Give feedback.
-
See what i have been implemented, its the mock for listening for the user input, def process_chunks(chunks): chunks = graph.stream({"messages": HumanMessage(content="First Message to Initiate the State")}, config=config) process_chunks(chunks) |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Trying to implement the human in-loop feature with Fast API. I have two endpoints.
The first endpoint, issues Interrupt
second endpoint with the same Checkpoint and thread ID I need to use ainvoke with "command" to resume.
I can get interrupt in the first endpoint. The second endpoint does not have a reference to the previous graph object to issue command. Is there any example I can refer to?
Beta Was this translation helpful? Give feedback.
All reactions