Support configuring effort alongside model

This commit is contained in:
Ian Gulliver
2026-10-23 08:40:00 -07:00
parent 6bbae3fffe
commit d6d9dd86d9
40 changed files with 805 additions and 541 deletions
+4 -4
View File
@@ -72,8 +72,8 @@ func stepProblems(s api.WorkflowStep, where string, seen map[string]bool, inRand
}
if s.Stage == "" {
if s.Model != "" || s.Prompt != "" || s.Agents != nil {
return append(problems, fmt.Sprintf("%s: model, prompt and agents belong on a stage, not on an order, parallel or random", where))
if s.Model != "" || s.Effort != "" || s.Prompt != "" || s.Agents != nil {
return append(problems, fmt.Sprintf("%s: model, effort, prompt and agents belong on a stage, not on an order, parallel or random", where))
}
list, kind := s.Order, "order"
switch {
@@ -112,8 +112,8 @@ func stepProblems(s api.WorkflowStep, where string, seen map[string]bool, inRand
seen[s.Stage] = true
switch {
case s.Agents != nil && strings.TrimSpace(s.Model) != "":
problems = append(problems, fmt.Sprintf("%s: model can't be given with agents, which name their own", where))
case s.Agents != nil && (strings.TrimSpace(s.Model) != "" || s.Effort != ""):
problems = append(problems, fmt.Sprintf("%s: model and effort can't be given with agents, which name their own", where))
case s.Agents != nil:
for _, p := range TeamProblems(*s.Agents) {
problems = append(problems, fmt.Sprintf("%s: %s", where, p))