game-analysis-types
Version:
Common TypeScript types and utilities for game analysis tools.
22 lines • 878 B
TypeScript
import { AIModelStrategy, AIModelConfig, AIRequest, AIResponse } from '../types/ai.js';
export declare class GeminiModelStrategy implements AIModelStrategy {
private config;
constructor(config: AIModelConfig);
getConfig(): AIModelConfig;
/**
* Generate text using Gemini API (fulfills AIModelStrategy interface)
* @param request - The AI request with prompt and options
* @returns The AI response
*/
generate(request: AIRequest): Promise<AIResponse>;
analyze(request: AIRequest): Promise<AIResponse>;
isAvailable(): Promise<boolean>;
/**
* Calculate the cost of the API call based on token usage
* @param inputTokens - Number of input tokens
* @param outputTokens - Number of output tokens
* @returns The cost of the API call in USD
*/
private calculateCost;
}
//# sourceMappingURL=gemini.d.ts.map