Member Junction
    Preparing search index...

    The minimal subset of @google/genai's Session this client depends on. Declaring the seam as an interface (rather than the concrete SDK Session) lets unit tests inject a fully in-memory fake that captures outbound sends and drives the registered message callback with Gemini-shaped frames — no websocket, no network. (Mirrors the server driver's GeminiLiveSession seam.)

    interface GeminiLiveClientSession {
        close(): void;
        sendClientContent(
            params: { turnComplete?: boolean; turns?: Content[] },
        ): void;
        sendRealtimeInput(
            params: {
                audio?: Blob_2;
                media?: Blob_2;
                text?: string;
                video?: Blob_2;
            },
        ): void;
        sendToolResponse(params: { functionResponses: FunctionResponse[] }): void;
    }
    Index

    Methods

    • Streams realtime user input to the model — mic audio frames, inbound video frames, and mid-session text.

      Parameters

      • params: { audio?: Blob_2; media?: Blob_2; text?: string; video?: Blob_2 }

      Returns void