Resolve repair budgets from validation modes
This commit is contained in:
@@ -40,6 +40,10 @@ func resolvePrompts(entries []promptConfig, base configkit.Path, resolution *con
|
||||
if entry.Output != nil && entry.Output.SchemaPath != nil {
|
||||
recordStringNormalization(&entry.Output.SchemaPath, path.Key("output").Key("schema_path"), resolution, strings.TrimSpace(*entry.Output.SchemaPath))
|
||||
}
|
||||
if output := entry.Output; output != nil && output.ValidationMode != nil && output.RepairAttempts == nil {
|
||||
attempts := domain.ResolveRepairAttempts(domain.ValidationMode(*output.ValidationMode), nil)
|
||||
configkit.Normalize(resolution, path.Key("output").Key("repair_attempts"), &output.RepairAttempts, &attempts, "Resolve repair budget")
|
||||
}
|
||||
for j := range entry.Messages {
|
||||
message := &entry.Messages[j]
|
||||
messagePath := path.Key("messages").Index(j)
|
||||
|
||||
Reference in New Issue
Block a user