I am using the Assistants API for having an assistant ask the user some questions and once the necessary information has been gathered, I want to replace the user’s message input with a call to action button (eg “Continue”) which will take them to another part of the app.
In my assistant instructions I end it with: “After you have gathered all the necessary information, ask the user to click Continue to go to the next step.”
The above just results in the assistant returning this info but I do not see anything in the stream payload to allow me to determine that the current run is the one in which they are done asking questions.
I am wondering what the best way is to determine that the assistant has reached this step. Yes, I could parse the assistant text output and look for something like “continue to the next step” but that feels very fragile.
I have also tried telling the assistant to call a function, in which I guess I could cancel(?) the run, but that seems to always just results in some odd output from the assistant.
Any insights on what is the recommended way to determine if the assistant is done asking questions would be appreciated.
Thanks!