Member Junction
    Preparing search index...

    Callbacks the widget supplies when starting voice.

    interface VoiceControllerCallbacks {
        getChannelSurface?: (channelName: string, title: string) => HTMLElement;
        onEnded: (reason?: string) => void;
        onState: (state: WidgetVoiceState) => void;
        onTranscript: (transcript: WidgetVoiceTranscript) => void;
    }
    Index

    Properties

    getChannelSurface?: (channelName: string, title: string) => HTMLElement

    Reveals (and returns) the demonstration-surface host element for an interactive channel the agent just engaged, so the channel can render into it inside the widget's shadow DOM. Called the first time a channel's tool fires. Omitted when the widget exposes no channel surface.

    onEnded: (reason?: string) => void

    Called when the session ends (incl. an abuse-ceiling abort), with an optional reason.

    onState: (state: WidgetVoiceState) => void
    onTranscript: (transcript: WidgetVoiceTranscript) => void