@langwatch/scenario
    Preparing search index...

    Interface InterruptOptions

    interface InterruptOptions {
        after?: number;
        afterWords?: number;
        content?: string | Uint8Array<ArrayBufferLike>;
        waitForSpeechTimeout?: number;
    }
    Index

    Properties

    after?: number

    TIME-based trigger (PRD §4.4 interrupt(after=2.0, …)): wait this many seconds after the agent starts speaking before injecting the interruption. Equivalent to agent({wait:false}) + sleep(after) + user. Mutually exclusive with afterWords (which takes precedence if both set).

    afterWords?: number

    Fire the interrupt only after the adapter's streaming transcript has emitted N words.

    content?: string | Uint8Array<ArrayBufferLike>

    Optional content to send as the interruption (string text or audio bytes/path).

    waitForSpeechTimeout?: number

    Bounded wait for the agent to start speaking before firing the interrupt.