MCPcopy Create free account
hub / github.com/github/gh-aw / NewGeminiEngine

Function NewGeminiEngine

pkg/workflow/gemini_engine.go:19–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17}
18
19func 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.

Calls

no outgoing calls