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
if $result.metadata["violations"].get("abusive_or_harmful.harassment_or_bullying", 0) > 0.8
44
-
if $config.enable_rails_exceptions
45
-
create event ActiveFenceHarassmentRailException(message="ActiveFence moderation triggered. The harassment or bullying risk score exceeded the threshold.")
46
-
else
47
-
bot inform cannot engage in abusive or harmful behavior
48
-
stop
49
-
50
-
if $result.metadata["violations"].get("abusive_or_harmful.profanity", 0) > 0.7
51
-
if $config.enable_rails_exceptions
52
-
create event ActiveFenceProfanityRailException(message="ActiveFence moderation triggered. The profanity risk score exceeded the threshold.")
53
-
else
54
-
bot inform cannot engage in abusive or harmful behavior
55
-
stop
56
-
57
-
if $result.metadata["violations"].get("abusive_or_harmful.hate_speech", 0) > 0.6
58
-
if $config.enable_rails_exceptions
59
-
create event ActiveFenceHateSpeechRailException(message="ActiveFence moderation triggered. The hate speech risk score exceeded the threshold.")
60
-
else
61
-
bot inform cannot engage in abusive or harmful behavior
62
-
stop
63
-
64
-
if $result.metadata["violations"].get("abusive_or_harmful.child_grooming", 0) > 0.4
65
-
if $config.enable_rails_exceptions
66
-
create event ActiveFenceChildGroomingRailException(message="ActiveFence moderation triggered. The child grooming risk score exceeded the threshold.")
67
-
else
68
-
bot inform cannot engage in abusive or harmful behavior
69
-
stop
70
-
71
-
if $result.metadata["violations"].get("abusive_or_harmful.general_violence", 0) > 0.7
72
-
if $config.enable_rails_exceptions
73
-
create event ActiveFenceGeneralViolenceRailException(message="ActiveFence moderation triggered. The general violence risk score exceeded the threshold.")
74
-
else
75
-
bot inform cannot engage in abusive or harmful behavior
76
-
stop
77
-
78
-
if $result.metadata["violations"].get("self_harm.general", 0) > 0.8
79
-
if $config.enable_rails_exceptions
80
-
create event ActiveFenceSelfHarmRailException(message="ActiveFence moderation triggered. The self harm risk score exceeded the threshold.")
81
-
else
82
-
bot inform cannot engage in self harm behavior
83
-
stop
84
-
85
-
if $result.metadata["violations"].get("adult_content.general", 0) > 0.3
86
-
if $config.enable_rails_exceptions
87
-
create event ActiveFenceAdultContentRailException(message="ActiveFence moderation triggered. The adult content risk score exceeded the threshold.")
88
-
else
89
-
bot inform cannot engage with inappropriate content
90
-
stop
91
-
92
-
if $result.metadata["violations"].get("privacy_violation.pii", 0) > 0.8
93
-
if $config.enable_rails_exceptions
94
-
create event ActiveFencePrivacyViolationRailException(message="ActiveFence moderation triggered. The privacy violation risk score exceeded the threshold.")
0 commit comments