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

Function NewPiEngine

pkg/workflow/pi_engine.go:34–51  ·  view source on GitHub ↗

NewPiEngine creates and returns a new PiEngine instance.

()

Source from the content-addressed store, hash-verified

32
33// NewPiEngine creates and returns a new PiEngine instance.
34func NewPiEngine() *PiEngine {
35 return &PiEngine{
36 BaseEngine: BaseEngine{
37 id: "pi",
38 displayName: "Pi",
39 description: "Pi AI coding agent (experimental)",
40 experimental: true,
41 ghSkillAgentName: "pi",
42 capabilities: EngineCapabilities{
43 ToolsAllowlist: true,
44 MaxTurns: true,
45 MaxContinuations: false,
46 WebSearch: false,
47 NativeAgentFile: false,
48 },
49 },
50 }
51}
52
53// GetModelEnvVarName returns the legacy Pi model env-var name exposed by gh-aw.
54// gh-aw passes the model to the Pi CLI via --model and separately exports the

Calls

no outgoing calls