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
content="Your job is to generate an error message in user's language for the user explaining the database doesn't have the information to respond what the user asked"
32
+
# Check for PII/Risky content (from guard_final)
33
+
ifstate.get("is_risky"):
34
+
logger.warning(
35
+
"Defensive check triggered: PII/Risky content detected in response"
36
+
)
37
+
system_message_content= (
38
+
"Your job is to generate an error message in user's language explaining "
39
+
"that the response cannot be provided because it contains sensitive or private information."
40
+
)
41
+
42
+
# Check for Malicious prompt (from guard_inicial) - Default fallback
43
+
else:
44
+
# Assuming is_malicious is True if we are here and not is_risky, or just a general fallback
0 commit comments