Skip to content

Commit 1348a1d

Browse files
Abhijit LAbhijit L
authored andcommitted
feat: add javelin guardrails
1 parent 4837c8f commit 1348a1d

File tree

6 files changed

+1123
-0
lines changed

6 files changed

+1123
-0
lines changed

plugins/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ import { handler as defaultjwt } from './default/jwt';
5252
import { handler as defaultrequiredMetadataKeys } from './default/requiredMetadataKeys';
5353
import { handler as walledaiguardrails } from './walledai/guardrails';
5454
import { handler as defaultregexReplace } from './default/regexReplace';
55+
import { handler as javelintrustsafety } from './javelin/trustsafety';
56+
import { handler as javelinpromptinjectiondetection } from './javelin/promptinjectiondetection';
57+
import { handler as javelinlang_detector } from './javelin/lang_detector';
5558

5659
export const plugins = {
5760
default: {
@@ -142,4 +145,9 @@ export const plugins = {
142145
walledai: {
143146
guardrails: walledaiguardrails,
144147
},
148+
javelin: {
149+
trustsafety: javelintrustsafety,
150+
promptinjectiondetection: javelinpromptinjectiondetection,
151+
lang_detector: javelinlang_detector,
152+
},
145153
};

0 commit comments

Comments
 (0)