wait_for_user
wait_for_user
Control how the agent pauses and waits for the user to speak. The arguments
are evaluated in priority order: answer_first takes precedence, then
timeout, then enabled. If none are provided, waiting is enabled with no
timeout.
Parameters
enabled
Explicitly enable (True) or disable (False) waiting for user input.
timeout
Number of seconds to wait for the user to speak before the agent continues.
answer_first
When True, activates the special "answer_first" mode. This answers the
call and waits for the user to speak before the agent begins its greeting.
Returns
FunctionResult — self, for chaining.