Interface: IJudgeArgs
Defined in: internal/guardrails/types.ts:185
One classification call for a rule: a cheap, fixed-format model call, reported to the usage adapter and recorded in the trace
like every other call. One completion only: no thread, no memory, no templates, no tools and no guardrails on itself.
The evidence of the check goes with it, the rule does not pass it: an input rule's judge sends the prompt, an output
rule's judge sends the question and the answer; the call's own arguments add files, KB chunks or tool results.
The call is aborted with the rule's abortSignal (its timeout).
Returns the issues the model found (empty = pass); the rule returns them as they are or maps them.
Throws when the model does not answer in the expected shape — the rule then fails as rule_error, never passes.
Extended by
Properties
instruction
instruction:
string
Defined in: internal/guardrails/types.ts:187
What to check, e.g. "Does the prompt seek instructions for weapons or explosives?".
model?
optionalmodel?:EJudgeModel
Defined in: internal/guardrails/types.ts:189
Default CHEAP.