/** * Google Gemini provider adapter. * * Uses a dynamic import so the `@google/generative-ai` package is an optional * peer dependency. If the package is not installed, a clear installation error * is thrown at call-time rather than at module load time. * * All Gemini SDK types are inlined below so this file compiles without the * `@google/generative-ai` package present in node_modules. */ import type { LLMClient, ChatParams, ChatResponse } from "./types.js"; /** * LLMClient implementation that wraps the Google Gemini API. * * The `@google/generative-ai` npm package is dynamically imported so it * remains an optional peer dependency. If the package is absent a descriptive * install error is thrown on the first call. * * Supports: * - Function/tool calling via functionDeclarations format * - System instruction passed via model config * - Message history with user/model/function roles */ export declare class GoogleAdapter implements LLMClient { private readonly model; private readonly apiKey; /** Lazily initialised after the dynamic import succeeds. */ private genAI; constructor(model: string, apiKey?: string); /** * Lazily import the `@google/generative-ai` package and return the * initialised GoogleGenerativeAI client. * * @throws If the `@google/generative-ai` package is not installed. */ private getGenAI; chat(params: ChatParams): Promise; } //# sourceMappingURL=google.d.ts.map