Guard unbound entity names in case interpretation

This commit is contained in:
Nico committed 2026-10-15 09:41:34 +02:00
1 parent 69e4f3b349
commit 3bf7b5bba7
12 files changed
+241 -18

No files matched your search

+1 -1
View File
@@ -93,7 +93,7 @@ def test_real_contextual_identity_resolution_with_fixture_llm(service, tmp_path)
assert any(e['id']=='23486' for e in entities.values())
resolved=next(k for k,e in entities.items() if e['id']=='23487')
doc=missing_payload()
if request["prompt_version"]=="case_interpretation_resolved_v3":
if request["prompt_version"]in {"case_interpretation_resolved_v3","case_interpretation_resolved_v4"}:
doc.update(described_behavior=[{'text':'The quest describes catching wild creatures using a net while intoxicated or wearing goggles.',
'source_ids':[self.mention],'basis':'local_description','verification':'not_independently_verified'}],
provisional_behavior_gap={'text':'The tester does not see these creatures despite wearing goggles.',