File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
examples/configs/guardrails_ai Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change 6
6
rails :
7
7
config :
8
8
guardrails_ai :
9
- on_fail : " noop"
10
9
validators :
11
10
- name : toxic_language
12
11
parameters :
@@ -21,18 +20,14 @@ rails:
21
20
parameters :
22
21
competitors : ["Apple", "Google", "Microsoft"]
23
22
metadata : {}
24
- - name : regex_match
25
- parameters :
26
- regex : " ^[A-Z].*"
27
- metadata : {}
28
- - name : restrict_to_topic
23
+ - name : restricttotopic
29
24
parameters :
30
25
valid_topics : ["technology", "science", "education"]
31
26
metadata : {}
32
27
input :
33
28
flows :
34
- - " guardrailsai check input $validator=\ " guardrails_pii\" "
35
- - " guardrailsai check input $validator=\ " competitor_check\" "
29
+ - guardrailsai check input $validator="guardrails_pii"
30
+ - guardrailsai check input $validator="competitor_check"
36
31
output :
37
32
flows :
38
- - " guardrailsai check output $validator=\" restrict_to_topic \" "
33
+ - guardrailsai check output $validator="restricttotopic "
You can’t perform that action at this time.
0 commit comments