Skip to main content

Interface: PreLLMClassifierConfig

Defined in: .source/wunderland/src/security/PreLLMClassifier.ts:29

Configuration for the Pre-LLM Classifier.

Properties

blockThreshold?

optional blockThreshold?: number

Defined in: .source/wunderland/src/security/PreLLMClassifier.ts:37

Risk score threshold for blocking (0.0 - 1.0)


customPatterns?

optional customPatterns?: InjectionPattern[]

Defined in: .source/wunderland/src/security/PreLLMClassifier.ts:31

Custom injection patterns to add


enableLogging?

optional enableLogging?: boolean

Defined in: .source/wunderland/src/security/PreLLMClassifier.ts:40

Enable logging of classifications


maxPromptSizeBytes?

optional maxPromptSizeBytes?: number

Defined in: .source/wunderland/src/security/PreLLMClassifier.ts:48

Maximum allowed prompt size in bytes. Inputs exceeding this limit are blocked before any processing to prevent memory-exhaustion DoS (OpenClaw OC-53). Default: 2 MiB (2_097_152 bytes).


riskThreshold?

optional riskThreshold?: number

Defined in: .source/wunderland/src/security/PreLLMClassifier.ts:34

Risk score threshold for flagging (0.0 - 1.0)