Validate a prompt for injection attacks
validate_promptCheck a single piece of untrusted text (a user message, a retrieved RAG document, tool output, etc.) for prompt injection, jailbreaks, instruction-override, data-exfiltration, and code injection BEFORE passing it to an LLM. Returns a safe/unsafe verdict with confidence, threat category, and reasoning.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The untrusted text to validate. | |
| sensitivity | No | Optional. Omit to use the account default. 'no_judgement' blocks only clear attacks, for apps whose users tell the AI exactly what to write. 'balanced' is an older name for it. 'strict' and 'lenient' are accepted for existing callers. |