PromptInjectionProtection interface

Prompt injection protection configuration.

Properties

onDetection

The action to take when prompt injection is detected.

promptLocations

The JSONPath expressions selecting the parts of the request body to scan for prompt injection.

responseLocations

The JSONPath expressions selecting the parts of the response body to scan for prompt injection.

sensitivity

The sensitivity level of prompt injection detection.

Property Details

onDetection

The action to take when prompt injection is detected.

onDetection: string

Property Value

string

promptLocations

The JSONPath expressions selecting the parts of the request body to scan for prompt injection.

promptLocations?: string[]

Property Value

string[]

responseLocations

The JSONPath expressions selecting the parts of the response body to scan for prompt injection.

responseLocations?: string[]

Property Value

string[]

sensitivity

The sensitivity level of prompt injection detection.

sensitivity?: string

Property Value

string