Hi all, I've been looking at the
human-in-the-loop workflow example and trying to figure out how to make this work in a web-based chat interface. That is, instead of using
input()
to get user input, the input comes from a websocket connection from a frontend web app.
The approach I'm taking at the moment is to have a nested workflow as suggested in the documentation, where the main workflow directs the user input to a sub-workflow depending on the query and existing context state.
Is this a viable approach or is there some other obvious way to yield control back to the user? I'm having some trouble getting the streaming to behave properly (see my
question in #❓py-issues-and-help), but want to make sure I'm on the right track before spending too much more time trying to debug it.