BuildDefaultMaxTurnsExpression builds a vars expression that resolves max-turns at runtime from the GH_AW_DEFAULT_MAX_TURNS GitHub variable. An empty string is returned as the fallback so that an unset variable is treated as "no limit".
()
| 158 | // at runtime from the GH_AW_DEFAULT_MAX_TURNS GitHub variable. An empty string is |
| 159 | // returned as the fallback so that an unset variable is treated as "no limit". |
| 160 | func BuildDefaultMaxTurnsExpression() string { |
| 161 | return fmt.Sprintf("${{ vars.%s || '' }}", DefaultMaxTurns) |
| 162 | } |
| 163 | |
| 164 | // BuildModelOverrideExpression builds a vars expression with primary model var, enterprise |
| 165 | // default model var, and built-in fallback model. |
no outgoing calls