PolicyViolation
Defined in: core/src/types/policy.ts:304
A single policy violation.
Properties
kind
kind:
PolicyKind
Defined in: core/src/types/policy.ts:308
Policy kind
location?
optionallocation?:SourceLocation
Defined in: core/src/types/policy.ts:318
Location of the prompt that breaks a prompt policy
message
message:
string
Defined in: core/src/types/policy.ts:312
Human-readable violation message
policyName
policyName:
string
Defined in: core/src/types/policy.ts:306
Name of the violated policy
severity
severity:
PolicySeverity
Defined in: core/src/types/policy.ts:310
Severity of the violation
source?
optionalsource?:string
Defined in: core/src/types/policy.ts:316
Source file/skill where the violation occurred
suggestion?
optionalsuggestion?:string
Defined in: core/src/types/policy.ts:314
Suggested remediation