Use prompt-defined structured output contracts
This commit is contained in:
@@ -123,7 +123,7 @@ func TestGlossaryModuleProposeMapsCorrectionsAndWritesDiagnostics(t *testing.T)
|
||||
t.Fatalf("expected one glossary:proposal call, got %+v", client.calls)
|
||||
}
|
||||
call := client.calls[0]
|
||||
if call.Schema != "correction_set" || call.Context.Role != "proposal" || !strings.Contains(call.Variables["SectionJSON"], "section_index") || !strings.Contains(call.Variables["GlossaryJSON"], "Jesters") {
|
||||
if call.Context.Role != "proposal" || !strings.Contains(call.Variables["SectionJSON"], "section_index") || !strings.Contains(call.Variables["GlossaryJSON"], "Jesters") {
|
||||
t.Fatalf("proposal mapping incomplete: %+v", call)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user