Member Junction
    Preparing search index...

    Concrete arguments handed to GeminiRealtime.connectLiveSession. Bundles the resolved connect config (system instruction, tools, modalities, transcription) and the message callback so the seam owns the entire ai.live.connect call and tests can substitute it wholesale.

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

    Properties

    Config: LiveConnectConfig

    The fully-built connect config (system instruction, tools, modalities, transcription, plus the open config bag).

    Model: string

    The Gemini Live model id to open the session against.

    OnClose?: (event: CloseEvent) => void

    Invoked when the websocket closes. Optional.

    OnError?: (event: ErrorEvent) => void

    Invoked on a websocket-level error (fatal — the session is unusable). Optional.

    OnMessage: (message: LiveServerMessage) => void

    Invoked for every LiveServerMessage the server emits over the session.