> ## 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

```go theme={null}
import (
	"github.com/OpenRouterTeam/go-sdk/models/components"
)

value := components.PromptInjectionScanScopeUserOnly

// Open enum: custom values can be created with a direct type cast
custom := components.PromptInjectionScanScope("custom_value")
```

## Values

| Name                                  | Value         |
| ------------------------------------- | ------------- |
| `PromptInjectionScanScopeUserOnly`    | user\_only    |
| `PromptInjectionScanScopeAllMessages` | all\_messages |
