@getdial/ai-sdk - v0.17.0
    Preparing search index...

    Function waitForMessageTool

    • Wait for the next inbound SMS and return it, or time out.

      The await-reply half of the "send OTP → await reply" pattern: pair it with sendMessage to send a code and block until the recipient texts back, all within a single tool-calling turn. Backed by the SDK's presence-based event stream — for durable delivery, register a webhook instead.

      Parameters

      • client: DialClient

      Returns Tool