resk-llm-ts - v2.2.0
    Preparing search index...

    Interface SecurityConfig

    interface SecurityConfig {
        failOpen?: boolean;
        blockCategories?: string[];
        minConfidenceThreshold?: number;
        maxInputLength?: number;
        enableCaching?: boolean;
        cacheSize?: number;
    }
    Index
    failOpen?: boolean

    Behaviour when a detector throws. false (default) fails closed: the thrown error is turned into a blocking result. true fails open.

    blockCategories?: string[]

    Threat categories that always block, regardless of severity.

    minConfidenceThreshold?: number

    Threats below this confidence are ignored for the block decision.

    maxInputLength?: number

    Inputs longer than this are rejected before any detector runs.

    enableCaching?: boolean

    Memoize results for repeated, context-less inputs.

    cacheSize?: number

    Maximum number of cached results (FIFO eviction).