validateMaxContinuationsSupport validates that max-continuations is only used with engines that support this feature
(frontmatter map[string]any, engine CodingAgentEngine)
| 140 | |
| 141 | // validateMaxContinuationsSupport validates that max-continuations is only used with engines that support this feature |
| 142 | func (c *Compiler) validateMaxContinuationsSupport(frontmatter map[string]any, engine CodingAgentEngine) error { |
| 143 | // Check if max-continuations is specified in the engine config |
| 144 | _, engineConfig := c.ExtractEngineConfig(frontmatter) |
| 145 | |
| 146 | hasMaxContinuations := engineConfig != nil && engineConfig.MaxContinuations != 0 |
| 147 | |
| 148 | if hasMaxContinuations { |
| 149 | agentValidationLog.Printf("Validating max-continuations support: engine=%s", engine.GetID()) |
| 150 | } |
| 151 | return validateCapabilitySupport("max-continuations", hasMaxContinuations, engine.GetCapabilities().MaxContinuations, engine.GetID()) |
| 152 | } |
| 153 | |
| 154 | // validateMaxToolDenialsSupport validates that max-tool-denials is only used with |
| 155 | // the Copilot engine in Copilot SDK mode. |
no test coverage detected