/** * @license * Copyright 2026 aphrody-code * SPDX-License-Identifier: Apache-2.0 */ export type GeminiModel = "flash" | "flash-lite" | "pro"; export type GeminiEngine = "auto" | "web" | "rust" | "python"; export interface GeminiAskOptions { model?: GeminiModel | string; engine?: GeminiEngine; cookiePath?: string; temperature?: number; systemPrompt?: string; /** Upper bound for native (Rust) requests in milliseconds. Default: 120 000. */ timeoutMs?: number; } export interface GeminiChatResponse { text: string; conversationId?: string; responseId?: string; choiceId?: string; engine: GeminiEngine; model: string; raw?: unknown; } export interface GeminiEngineStatus { web: { available: boolean; cookiePath: string; cookieCount: number; error?: string; }; rust: { available: boolean; dllPath: string; error?: string; }; python: { available: boolean; pythonPath: string; sdk: string; error?: string; }; aphrody: { available: boolean; homeDir: string; agentHomeDir: string; }; }