Spaces:
Runtime error
Runtime error
File size: 561 Bytes
60ba966 1696acd 60ba966 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
define flow self check input
$allowed = execute self_check_input
if not $allowed
bot refuse to respond
stop
define flow self check output
$allowed = execute self_check_output
if not $allowed
bot refuse to respond
stop
define flow detect sensitive data on output
$has_sensitive_data = execute detect_sensitive_data(source="output", text=$bot_message)
if $has_sensitive_data
bot refuse to respond
stop
define bot refuse to respond
"⚠️ I'm sorry, I can't respond to that. (This message was blocked by the guardrail)" |