/** * Google (Gemini) provider implementation * * HTTP Agent Pooling Status: ❌ NOT IMPLEMENTED * Reason: Google Generative AI SDK (@google/generative-ai ^0.21.0) does not support HTTP agent configuration * Impact: Each request creates new HTTP connections (performance optimisation opportunity) * Recommendation: Monitor SDK updates or consider REST API with custom HTTP client * * Self-registers with the LLM Provider Registry using dependency inversion pattern */ import type { LLMCompletionOptions, LLMCompletionResult } from '../../types/llm.types.js'; import { BaseLLMProvider } from '../provider.interface.js'; export declare class GoogleProvider extends BaseLLMProvider { name: import("../../config/providers.config.js").ProviderName; private client; complete(options: LLMCompletionOptions): Promise; getAlternativeModels(currentModel?: string): string[]; isConfigured(): boolean; streamComplete(options: LLMCompletionOptions, onChunk: (chunk: string) => void): Promise; validateModel(modelName: string): Promise; /** * Create generation config from completion options */ private createGenerationConfig; private formatMessages; private getClient; /** * Extract usage metrics from Google response, including cached content tokens. */ private extractUsage; /** * Map Google API response to LLMCompletionResult */ private mapResponseToResult; /** * Process streaming chunks and accumulate content */ private processStream; /** * Returns false — Google Vertex AI batch requires @google-cloud/aiplatform. * Install the package and configure vertex_project to enable batch support. */ supportsBatch(): false; /** * Handle Google API errors with proper error messages * @param error - The error to handle * @param context - The context where the error occurred (e.g., 'API', 'streaming') */ private handleGoogleError; } //# sourceMappingURL=google.provider.d.ts.map