Turning Guard on
Use the Enabled switch in the top right of the page. It takes effect the moment you flip it, so there is no separate save step. While it is off, requests pass through without any checks.Shadow or enforce
Guard runs a workspace in one of two modes, and this is the first thing to set.- Shadow. Records what each check would have done, without acting on live traffic. Nothing is blocked and nothing is rewritten. This is where a workspace starts.
- Enforce. Acts.
The two checks
Guard has two detectors, shown as two rows.- Prompt injection. A self-hosted EU classifier for jailbreak and injection attempts. Content never leaves for a third party. It reads a prompt, so it runs on the way in.
- Custom terms. Words and phrases you choose, matched literally and case-insensitively.
What a check does when it fires
Each detector carries one control, and Off is one of its values rather than a separate switch:- Off. The check does not run.
- Allow (log only). Let the request through, but record that the check fired. Useful while you are getting a feel for how often it triggers.
- Flag. Mark the request as flagged and let it continue.
- Block. Stop the request and return an error. Nothing is sent to a model.
- Redact. Remove the matched text before the request continues.
Sensitivity
Each detector has a Sensitivity, chosen from a named ladder rather than typed as a number:- Strict. Catches weaker attempts, and reports more false alarms.
- Balanced. The default. Catches clear attempts.
- Lenient. Only the most obvious attempts.
Streamed answers
Checks on the way in run before anything is sent to a model, so they always act in time. Checks on the way out run on the answer, and an answer that is streamed is already leaving as it is written. Streamed answers lets you choose which of those two you would rather have.- Async, the default. The answer streams as it is generated and the output checks run when it finishes. A block is reported after the answer has been shown. A redaction never reaches the reader at all: they have seen the words the rule removes, and only the copy the platform stores is rewritten.
- Buffered. The output checks act before anything is delivered. A blocked answer is never shown and a redacted one is only ever shown rewritten. The cost is the wait: the whole answer arrives at once instead of appearing as it is written.