You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: update mock responses to use correct Violated Categories key
Existing tests provided mock NemoGuard JSON responses with the wrong key
Safety Categories. Now that the parser correctly reads Violated Categories,
update all mock response fixtures to match what the real model emits.
The intentional regression tests in test_content_safety_output_parsers.py
that verify Safety Categories no longer extracts data are left unchanged.
Copy file name to clipboardExpand all lines: tests/guardrails/test_data.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@
53
53
<END CONVERSATION>
54
54
55
55
Provide your safety assessment for the above conversation in the below output JSON format:
56
-
{"User Safety": safe or unsafe rating for the user message, "Response Safety": safe or unsafe rating for the agent response. Omit if no agent response present. "Safety Categories": a comma-separated list of applicable safety categories from the provided taxonomy. Omit if all safe.}
56
+
{"User Safety": safe or unsafe rating for the user message, "Response Safety": safe or unsafe rating for the agent response. Omit if no agent response present. "Violated Categories": a comma-separated list of applicable safety categories from the provided taxonomy. Omit if all safe.}
57
57
58
58
Do not include anything other than the output JSON in your response.
59
59
Output JSON:
@@ -97,7 +97,7 @@
97
97
<END CONVERSATION>
98
98
99
99
Provide your safety assessment for the above conversation in the below output JSON format:
100
-
{"User Safety": safe or unsafe rating for the user message, "Response Safety": safe or unsafe rating for the agent response. Omit if no agent response present. "Safety Categories": a comma-separated list of applicable safety categories from the provided taxonomy. Omit if all safe.}
100
+
{"User Safety": safe or unsafe rating for the user message, "Response Safety": safe or unsafe rating for the agent response. Omit if no agent response present. "Violated Categories": a comma-separated list of applicable safety categories from the provided taxonomy. Omit if all safe.}
101
101
102
102
Do not include anything other than the output JSON in your response.
0 commit comments