Optionalcontent: string | ModelMessageOptional user message content. Can be a string or full message object. If undefined, the user simulator will generate content automatically.
Optionaloptions: VoiceUserOptionsOptional per-step voice overrides (voiceStyle, audioEffects).
A ScriptStep function that can be used in scenario scripts.
Generate or specify a user message in the conversation.
If content is provided, it will be used as the user message. If no content is provided, the user simulator agent will automatically generate an appropriate message based on the scenario context.
Voice (PRD ยง4.2): pass
{ voiceStyle }and/or{ audioEffects }to apply a per-step override to ONLY this turn's synthesized audio (scenario.user("I'm upset!", { voiceStyle: "angry" })). The simulator's default voice/effects resume on subsequent turns.