PromptPolicyScope
Defined in: validator/src/policy/prompt-evaluator.ts:227
Policy risk and selection that replace the subject’s own, for a caller that judges one prompt by more than its own fields, such as a release gate that also reads the source.
Properties
risk
risk:
RiskLevel
Defined in: validator/src/policy/prompt-evaluator.ts:229
Policy risk the checks and their messages use
selects
selects: (
match) =>boolean
Defined in: validator/src/policy/prompt-evaluator.ts:231
Whether a policy’s match selects the prompt
Parameters
match
PromptPolicyMatch | undefined
Returns
boolean