After experiments, the input()
call in a while
loop should generally block the execution, enforcing agent wait.
BTW I instructed the agent not to ask a question until the user said the keyword “OVER”. Immediately the agent started putting OVER at the end of every question