# Guardrails (/examples/agents/guardrails/overview)



| Example                                                                  | Description                                                                                                             |
| ------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------- |
| [DeepKeep AI Firewall](/examples/agents/guardrails/deepkeep-ai-firewall) | Check input and output with your configured DeepKeep deployment.                                                        |
| [Custom Guardrail](/examples/agents/guardrails/custom-guardrail)         | Use a keyword-based BaseGuardrail pre-hook to reject configured terms.                                                  |
| [OpenAI Moderation](/examples/agents/guardrails/openai-moderation)       | Block flagged input with OpenAIModerationGuardrail as a pre-hook, including custom category lists and image moderation. |
| [Output Guardrail](/examples/agents/guardrails/output-guardrail)         | Reject responses under 20 characters with a post-hook that raises OutputCheckError.                                     |
| [PII Detection](/examples/agents/guardrails/pii-detection)               | Reject or mask the configured PII patterns in input.                                                                    |
| [Prompt Injection](/examples/agents/guardrails/prompt-injection)         | Check recognized prompt-injection patterns before model execution.                                                      |
| [Mixed Hooks and Guardrails](/examples/agents/guardrails/mixed-hooks)    | Combine a logging pre-hook with PIIDetectionGuardrail; blocked runs return RunStatus.error instead of raising.          |
