mirror of
https://github.com/hoshikawa2/nemo_guardrails_configuration.git
synced 2026-07-09 17:04:20 +00:00
First Commit
This commit is contained in:
7
nemo_guardrails_tracing_project/config/rails/flows.co
Normal file
7
nemo_guardrails_tracing_project/config/rails/flows.co
Normal file
@@ -0,0 +1,7 @@
|
||||
define user express input
|
||||
$input_text
|
||||
|
||||
define flow main
|
||||
user express input
|
||||
execute executar_pipeline_validacoes
|
||||
bot say $nemo_response
|
||||
@@ -1,12 +0,0 @@
|
||||
define flow input_check_toxicidade
|
||||
user input
|
||||
$r = execute detectar_toxicidade(text=$user_input)
|
||||
if $r.allowed == False
|
||||
bot respond "BLOCKED:TOX"
|
||||
|
||||
|
||||
define flow input_check_out_of_scope
|
||||
user input
|
||||
$r = execute detectar_out_of_scope(text=$user_input)
|
||||
if $r.allowed == False
|
||||
bot respond "BLOCKED:OOS"
|
||||
@@ -1,27 +0,0 @@
|
||||
define flow output_check_cmp
|
||||
|
||||
$r = execute cmp(resposta="dummy")
|
||||
|
||||
if $r.allowed == False
|
||||
bot respond "BLOCKED:CMP"
|
||||
|
||||
bot respond "OK"
|
||||
|
||||
|
||||
define flow output_check_verbalizacao_prematura
|
||||
|
||||
$r = execute verbalizacao_prematura(resposta="dummy")
|
||||
|
||||
if $r.allowed == False
|
||||
bot respond "BLOCKED:REVPREC"
|
||||
|
||||
bot respond "OK"
|
||||
|
||||
define flow output_check_groundedness
|
||||
|
||||
$r = execute validar_groundedness(resposta="dummy")
|
||||
|
||||
if $r.allowed == False
|
||||
bot respond "BLOCKED:GND"
|
||||
|
||||
bot respond "OK"
|
||||
Reference in New Issue
Block a user