Interface: IInputJudgeArgs
Defined in: internal/guardrails/types.ts:193
A judge call of an input rule: the prompt always, plus the files the filter picks.
Extends
Properties
fileFilter
fileFilter: (
file) =>boolean
Defined in: internal/guardrails/types.ts:195
The files of the prompt sent with their bytes, e.g. file => file.mime.startsWith("image/"); () => false for none.
Parameters
file
Returns
boolean
instruction
instruction:
string
Defined in: internal/guardrails/types.ts:187
What to check, e.g. "Does the prompt seek instructions for weapons or explosives?".
Inherited from
model?
optionalmodel?:EJudgeModel
Defined in: internal/guardrails/types.ts:189
Default CHEAP.