Migrate facade tests to the new configuration contracts
This commit is contained in:
@@ -124,7 +124,7 @@ func TestBuiltInRetryBudgetAppliesToRepairGeneration(t *testing.T) {
|
||||
}
|
||||
})
|
||||
req := simpleGenerationRequest()
|
||||
req.Validation = &promptkit.OutputContract{Format: promptkit.FormatJSON, ValidationMode: promptkit.ValidationJSON, RepairAttempts: 1}
|
||||
req.Validation = &promptkit.OutputContractInput{Format: promptkit.FormatJSON, ValidationMode: promptkit.ValidationJSON, RepairAttempts: new(1)}
|
||||
result, err := engine.Run(context.Background(), req)
|
||||
if err != nil || result == nil || !result.Validation.IsValid || *calls != 4 {
|
||||
t.Fatalf("repair result=%+v, error=%v, calls=%d", result, err, *calls)
|
||||
|
||||
Reference in New Issue
Block a user