PromptInjectionScanScope
Which message roles to scan for prompt injection. Only applies to the regex-prompt-injection builtin. Defaults to all_messages.
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
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")
| Name | Value |
|---|---|
PromptInjectionScanScopeUserOnly | user_only |
PromptInjectionScanScopeAllMessages | all_messages |