Support configuring effort alongside model
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user