mirror of
https://github.com/hoshikawa2/nemo_guardrails_oci_generative_ai.git
synced 2026-07-09 16:04:20 +00:00
11 lines
303 B
Plaintext
11 lines
303 B
Plaintext
define bot refuse to respond
|
|
"I'm sorry, I can't respond to that."
|
|
|
|
define subflow keyword check input
|
|
"""Check if the user input contains any forbidden keywords."""
|
|
$result = execute detect_keywords(source="input", text=$user_message)
|
|
|
|
if $result["is_match"]
|
|
bot refuse to respond
|
|
stop
|