/** * GeminiClient - Interface to Google Gemini API for agent decision-making */ import { AgentOutput, LLMMessage } from '../types'; /** * Configuration for GeminiClient */ export interface GeminiClientConfig { /** Gemini API key */ apiKey: string; /** Model name (default: gemini-1.5-flash) */ model?: string; /** Maximum retries on failure (default: 3) */ maxRetries?: number; /** Temperature for generation (default: 0.7) */ temperature?: number; } /** * GeminiClient handles communication with Google Gemini API */ export declare class GeminiClient { private genAI; private model; private maxRetries; private temperature; constructor(config: GeminiClientConfig); /** * Generate agent output from conversation messages * @param messages - Array of conversation messages * @returns AgentOutput or null if all retries fail */ generateAgentOutput(messages: LLMMessage[]): Promise; /** * Attempt to generate and parse output */ private attemptGeneration; /** * Convert LLMMessage array to Gemini API format */ private convertToGeminiFormat; /** * Get corrective message for retry attempts */ private getCorrectiveMessage; /** * Check if error is retryable */ private isRetryableError; /** * Delay helper for exponential backoff */ private delay; } //# sourceMappingURL=GeminiClient.d.ts.map