PromptInjectionScanScope - Python SDK

PromptInjectionScanScope method reference

The Python SDK and docs are currently in beta. Report issues on GitHub.

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

Values

NameValue
USER_ONLYuser_only
ALL_MESSAGESall_messages