LlamaFirewall is Meta's open-source guardrail framework for AI agents, part of Purple Llama. It combines Prompt Guard for detecting jailbreaks and prompt injection, AlignmentCheck for catching an agent that drifts from the user's goal, and CodeShield for flagging insecure code before it runs.
You wire it into an agent's message and tool-call flow so it scans inputs, reasoning and outputs. Install with pip install llamafirewall and see the Purple Llama docs for configuration. It complements Llama Guard, which classifies content for safety.