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

Function NewOpenCodeEngine

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

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls