@@ -10,11 +10,9 @@ import { handler as defaultwebhook } from './default/webhook';
10
10
import { handler as defaultlog } from './default/log' ;
11
11
import { handler as defaultcontainsCode } from './default/containsCode' ;
12
12
import { handler as defaultalluppercase } from './default/alluppercase' ;
13
- import { handler as defaultendsWith } from './default/endsWith' ;
14
13
import { handler as defaultalllowercase } from './default/alllowercase' ;
15
- import { handler as defaultmodelwhitelist } from './default/modelwhitelist' ;
16
- import { handler as defaultjwt } from './default/jwt' ;
17
- import { handler as defaultrequiredMetadataKeys } from './default/requiredMetadataKeys' ;
14
+ import { handler as defaultendsWith } from './default/endsWith' ;
15
+ import { handler as defaultmodelWhitelist } from './default/modelWhitelist' ;
18
16
import { handler as portkeymoderateContent } from './portkey/moderateContent' ;
19
17
import { handler as portkeylanguage } from './portkey/language' ;
20
18
import { handler as portkeypii } from './portkey/pii' ;
@@ -34,12 +32,24 @@ import { handler as patronusnoRacialBias } from './patronus/noRacialBias';
34
32
import { handler as patronusretrievalAnswerRelevance } from './patronus/retrievalAnswerRelevance' ;
35
33
import { handler as patronustoxicity } from './patronus/toxicity' ;
36
34
import { handler as patronuscustom } from './patronus/custom' ;
35
+ import { mistralGuardrailHandler } from './mistral' ;
37
36
import { handler as pangeatextGuard } from './pangea/textGuard' ;
37
+ import { handler as promptfooPii } from './promptfoo/pii' ;
38
+ import { handler as promptfooHarm } from './promptfoo/harm' ;
39
+ import { handler as promptfooGuard } from './promptfoo/guard' ;
38
40
import { handler as pangeapii } from './pangea/pii' ;
39
- import { handler as promptsecurityprotectPrompt } from './promptsecurity/protectPrompt' ;
40
- import { handler as promptsecurityprotectResponse } from './promptsecurity/protectResponse' ;
41
+ import { pluginHandler as bedrockHandler } from './bedrock/index' ;
42
+ import { handler as acuvityScan } from './acuvity/scan' ;
43
+ import { handler as lassoclassify } from './lasso/classify' ;
44
+ import { handler as exaonline } from './exa/online' ;
45
+ import { handler as azurePii } from './azure/pii' ;
46
+ import { handler as azureContentSafety } from './azure/contentSafety' ;
47
+ import { handler as promptSecurityProtectPrompt } from './promptsecurity/protectPrompt' ;
48
+ import { handler as promptSecurityProtectResponse } from './promptsecurity/protectResponse' ;
41
49
import { handler as panwPrismaAirsintercept } from './panw-prisma-airs/intercept' ;
42
- import { handler as walledaiguardrails } from './walledai/guardrails' ;
50
+ import { handler as defaultjwt } from './default/jwt' ;
51
+ import { handler as defaultrequiredMetadataKeys } from './default/requiredMetadataKeys' ;
52
+ import { handler as walledaiguardrails } from "./walledai/guardrails"
43
53
44
54
export const plugins = {
45
55
default : {
@@ -55,9 +65,9 @@ export const plugins = {
55
65
log : defaultlog ,
56
66
containsCode : defaultcontainsCode ,
57
67
alluppercase : defaultalluppercase ,
58
- endsWith : defaultendsWith ,
59
68
alllowercase : defaultalllowercase ,
60
- modelwhitelist : defaultmodelwhitelist ,
69
+ endsWith : defaultendsWith ,
70
+ modelWhitelist : defaultmodelWhitelist ,
61
71
jwt : defaultjwt ,
62
72
requiredMetadataKeys : defaultrequiredMetadataKeys ,
63
73
} ,
@@ -90,18 +100,42 @@ export const plugins = {
90
100
toxicity : patronustoxicity ,
91
101
custom : patronuscustom ,
92
102
} ,
103
+ mistral : {
104
+ moderateContent : mistralGuardrailHandler ,
105
+ } ,
93
106
pangea : {
94
107
textGuard : pangeatextGuard ,
95
108
pii : pangeapii ,
96
109
} ,
110
+ promptfoo : {
111
+ pii : promptfooPii ,
112
+ harm : promptfooHarm ,
113
+ guard : promptfooGuard ,
114
+ } ,
115
+ bedrock : {
116
+ guard : bedrockHandler ,
117
+ } ,
118
+ acuvity : {
119
+ scan : acuvityScan ,
120
+ } ,
121
+ lasso : {
122
+ classify : lassoclassify ,
123
+ } ,
124
+ exa : {
125
+ online : exaonline ,
126
+ } ,
127
+ azure : {
128
+ pii : azurePii ,
129
+ contentSafety : azureContentSafety ,
130
+ } ,
97
131
promptsecurity : {
98
- protectPrompt : promptsecurityprotectPrompt ,
99
- protectResponse : promptsecurityprotectResponse ,
132
+ protectPrompt : promptSecurityProtectPrompt ,
133
+ protectResponse : promptSecurityProtectResponse ,
100
134
} ,
101
135
'panw-prisma-airs' : {
102
136
intercept : panwPrismaAirsintercept ,
103
137
} ,
104
- walledai : {
105
- guardrails : walledaiguardrails ,
106
- } ,
107
- } ;
138
+ " walledai" : {
139
+ " guardrails" : walledaiguardrails
140
+ }
141
+ } ;
0 commit comments