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; text?: string }): void;
        sendToolResponse(params: { functionResponses: FunctionResponse[] }): void;
    }
    Index

    Methods

    • Appends client content WITHOUT triggering generation (context notes, history seeding).

      Parameters

      • params: { turnComplete?: boolean; turns?: Content[] }

      Returns void

    • Streams realtime user input to the model — mic audio frames AND mid-session text. Text via realtime input is the Live API's "respond now" path for in-conversation messages: native-audio models treat sendClientContent as history seeding only and will NOT generate from it mid-call, but realtime text triggers immediately.

      Parameters

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

      Returns void

    • Replies to a server tool call with one or more function responses.

      Parameters

      • params: { functionResponses: FunctionResponse[] }

      Returns void