Member Junction
    Preparing search index...

    Arguments handed to GeminiRealtimeClient.connectLiveSession. Bundles the resolved model + connect config (from the server-minted SessionConfig), the ephemeral token, and the lifecycle callbacks so the seam owns the entire live.connect call and tests can substitute it wholesale.

    interface GeminiClientConnectArgs {
        Config: LiveConnectConfig;
        EphemeralToken: string;
        Model: string;
        OnClose: (event: CloseEvent) => void;
        OnError: (event: ErrorEvent) => void;
        OnMessage: (message: LiveServerMessage) => void;
    }
    Index

    Properties

    Config: LiveConnectConfig

    The server-built connect config (system instruction, tools, modalities, transcription).

    EphemeralToken: string

    The server-minted ephemeral auth token (used as the API key on a v1alpha client).

    Model: string

    The Gemini Live model id to open the session against.

    OnClose: (event: CloseEvent) => void

    Invoked when the websocket closes.

    OnError: (event: ErrorEvent) => void

    Invoked on a websocket-level error (fatal).

    OnMessage: (message: LiveServerMessage) => void

    Invoked for every LiveServerMessage the server emits over the session.