()
| 17 | } |
| 18 | |
| 19 | func NewOpenCodeEngine() *OpenCodeEngine { |
| 20 | return &OpenCodeEngine{ |
| 21 | UniversalLLMConsumerEngine: UniversalLLMConsumerEngine{ |
| 22 | BaseEngine: BaseEngine{ |
| 23 | id: "opencode", |
| 24 | displayName: "OpenCode", |
| 25 | description: "OpenCode CLI with headless mode and multi-provider LLM support", |
| 26 | experimental: true, |
| 27 | ghSkillAgentName: "opencode", |
| 28 | capabilities: EngineCapabilities{ |
| 29 | ToolsAllowlist: false, |
| 30 | MaxTurns: true, |
| 31 | WebSearch: false, |
| 32 | }, |
| 33 | }, |
| 34 | }, |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | // GetModelEnvVarName returns the native environment variable name that the OpenCode CLI uses |
| 39 | // for model selection. Setting OPENCODE_MODEL is equivalent to passing --model to the CLI. |
no outgoing calls