()
| 17 | } |
| 18 | |
| 19 | func NewGeminiEngine() *GeminiEngine { |
| 20 | return &GeminiEngine{ |
| 21 | BaseEngine: BaseEngine{ |
| 22 | id: "gemini", |
| 23 | displayName: "Google Gemini CLI", |
| 24 | description: "Google Gemini CLI with headless mode and LLM gateway support", |
| 25 | experimental: false, |
| 26 | ghSkillAgentName: "gemini-cli", |
| 27 | capabilities: EngineCapabilities{ |
| 28 | ToolsAllowlist: true, |
| 29 | MaxTurns: true, |
| 30 | MaxContinuations: false, // Gemini CLI does not support --max-autopilot-continues-style continuation mode |
| 31 | WebSearch: false, |
| 32 | NativeAgentFile: false, // Gemini does not support agent file natively; the compiler prepends the agent file content to prompt.txt |
| 33 | }, |
| 34 | dedicatedLLMGatewayPort: constants.GeminiLLMGatewayPort, |
| 35 | }, |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | // GetModelEnvVarName returns the native environment variable name that the Gemini CLI uses |
| 40 | // for model selection. Setting GEMINI_MODEL is equivalent to passing --model to the CLI. |
no outgoing calls