waitForUser
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
opts
Optional configuration object.
opts.enabled
Explicitly enable (true) or disable (false) waiting for user input.
opts.timeout
Number of seconds to wait for the user to speak before the agent continues.
opts.answerFirst
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 — this, for chaining.