langchain.js
    Preparing search index...

    Interface RedactionRuleConfig

    Configuration for a redaction rule

    interface RedactionRuleConfig {
        detector?: Detector;
        piiType: string;
        strategy: PIIStrategy;
    }
    Index

    Properties

    detector?: Detector

    Custom detector function or regex pattern string

    piiType: string

    Type of PII to detect (built-in or custom name)

    strategy: PIIStrategy

    Strategy for handling detected PII