Individual violation detected by a guardrail

interface GuardrailViolation {
    type: string;
    description: string;
    location?: { start: number; end: number };
    severity: GuardrailSeverity;
    confidence?: number;
}

Properties

type: string

Type of violation

description: string

Description of the violation

location?: { start: number; end: number }

Location in the content (character offset or line number)

Severity of this specific violation

confidence?: number

Confidence score (0-1)