Configuration for PII detection

interface PIIGuardrailConfig {
    detectTypes?: (
        | "ssn"
        | "email"
        | "phone"
        | "credit_card"
        | "ip_address"
        | "passport"
        | "driver_license"
    )[];
    severity?: GuardrailSeverity;
    enabled?: boolean;
}

Properties

detectTypes?: (
    | "ssn"
    | "email"
    | "phone"
    | "credit_card"
    | "ip_address"
    | "passport"
    | "driver_license"
)[]

Types of PII to detect

severity?: GuardrailSeverity

Severity level for PII violations

enabled?: boolean

Whether to enable this guardrail