NewPiEngine creates and returns a new PiEngine instance.
()
| 32 | |
| 33 | // NewPiEngine creates and returns a new PiEngine instance. |
| 34 | func 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 |
no outgoing calls