> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# PromptInjectionScanScope

Which message roles to scan for prompt injection. Only applies to the regex-prompt-injection builtin. Defaults to all\_messages.

## Example Usage

```python theme={null}
from openrouter.components import PromptInjectionScanScope

# Open enum: unrecognized values are captured as UnrecognizedStr
value: PromptInjectionScanScope = "user_only"
```

## Values

This is an open enum. Unrecognized values will not fail type checks.

* `"user_only"`
* `"all_messages"`
