session.sendText
Injects text into the live conversation as if the user had spoken it.
session.sendText(text) → Promise<void>
Injects text into the live conversation: the agent treats it like user speech, interrupting what it is saying to respond. Reach for it when a value is painful to say aloud, like an address, an email, or a confirmation code, where typing beats spelling it out.
Parameters
text
string
RequiredThe text to inject as a user turn.
Send an exact string
await session.sendText('123 Main Street');