@@ -10,11 +10,9 @@ import { handler as defaultwebhook } from './default/webhook';
1010import { handler as defaultlog } from './default/log' ;
1111import { handler as defaultcontainsCode } from './default/containsCode' ;
1212import { handler as defaultalluppercase } from './default/alluppercase' ;
13- import { handler as defaultendsWith } from './default/endsWith' ;
1413import { 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' ;
1816import { handler as portkeymoderateContent } from './portkey/moderateContent' ;
1917import { handler as portkeylanguage } from './portkey/language' ;
2018import { handler as portkeypii } from './portkey/pii' ;
@@ -34,12 +32,25 @@ import { handler as patronusnoRacialBias } from './patronus/noRacialBias';
3432import { handler as patronusretrievalAnswerRelevance } from './patronus/retrievalAnswerRelevance' ;
3533import { handler as patronustoxicity } from './patronus/toxicity' ;
3634import { handler as patronuscustom } from './patronus/custom' ;
35+ import { mistralGuardrailHandler } from './mistral' ;
3736import { 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' ;
3840import { 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' ;
4149import { handler as panwPrismaAirsintercept } from './panw-prisma-airs/intercept' ;
42- import { handler as walledaiwalledprotect } from './walledai/walledprotect' ;
50+ import { handler as defaultjwt } from './default/jwt' ;
51+ import { handler as defaultrequiredMetadataKeys } from './default/requiredMetadataKeys' ;
52+ import { handler as walledaiguardrails } from './walledai/walledprotect' ;
53+ import { handler as defaultregexReplace } from './default/regexReplace' ;
4354
4455export const plugins = {
4556 default : {
@@ -55,11 +66,12 @@ export const plugins = {
5566 log : defaultlog ,
5667 containsCode : defaultcontainsCode ,
5768 alluppercase : defaultalluppercase ,
58- endsWith : defaultendsWith ,
5969 alllowercase : defaultalllowercase ,
60- modelwhitelist : defaultmodelwhitelist ,
70+ endsWith : defaultendsWith ,
71+ modelWhitelist : defaultmodelWhitelist ,
6172 jwt : defaultjwt ,
6273 requiredMetadataKeys : defaultrequiredMetadataKeys ,
74+ regexReplace : defaultregexReplace ,
6375 } ,
6476 portkey : {
6577 moderateContent : portkeymoderateContent ,
@@ -90,18 +102,42 @@ export const plugins = {
90102 toxicity : patronustoxicity ,
91103 custom : patronuscustom ,
92104 } ,
105+ mistral : {
106+ moderateContent : mistralGuardrailHandler ,
107+ } ,
93108 pangea : {
94109 textGuard : pangeatextGuard ,
95110 pii : pangeapii ,
96111 } ,
112+ promptfoo : {
113+ pii : promptfooPii ,
114+ harm : promptfooHarm ,
115+ guard : promptfooGuard ,
116+ } ,
117+ bedrock : {
118+ guard : bedrockHandler ,
119+ } ,
120+ acuvity : {
121+ scan : acuvityScan ,
122+ } ,
123+ lasso : {
124+ classify : lassoclassify ,
125+ } ,
126+ exa : {
127+ online : exaonline ,
128+ } ,
129+ azure : {
130+ pii : azurePii ,
131+ contentSafety : azureContentSafety ,
132+ } ,
97133 promptsecurity : {
98- protectPrompt : promptsecurityprotectPrompt ,
99- protectResponse : promptsecurityprotectResponse ,
134+ protectPrompt : promptSecurityProtectPrompt ,
135+ protectResponse : promptSecurityProtectResponse ,
100136 } ,
101137 'panw-prisma-airs' : {
102138 intercept : panwPrismaAirsintercept ,
103139 } ,
104140 walledai : {
105- walledprotect : walledaiwalledprotect ,
141+ walledprotect : walledaiguardrails ,
106142 } ,
107- } ;
143+ } ;
0 commit comments