esc
  • WorkflowsPages
  • Case studiesPages
  • Machine Learning FoundationsLearn
  • AI EngineeringLearn
  • AI Guardrails & Red TeamingLearn
  • UI/UXLearn
  • Design SystemsLearn
  • Production System DesignLearn
  • AI papersPages
  • Interview KitPages
  • Book a callContact
  • Download ResumeContact
Let’s talk

I’ll build the agent for it.

Guardrail Tools: Llama Guard, NeMo Guardrails, Cloud Filters

The three main kinds of guardrail tool for AI apps, what each one does and how to choose between them, explained simply for your AI interview.

In short

Guardrail tools are ready-made checks that screen what goes into an AI model and what comes out. Llama Guard is an open-weight model that classifies text against safety risks, NeMo Guardrails is an open toolkit for writing your own rules, and cloud filters are hosted checks you call from AWS, Azure or OpenAI.

10 min readIntermediateCommon · estimateFacts checked 26 November 2026

Say it out loud

Read it once, then say it without looking. Start with the short one; use the long one when they ask you to go deeper.

Guardrail tools check what goes into an AI model and what comes out. There are three main kinds. Llama Guard is an open-weight model from the Llama team that sorts text into safety risk categories. NeMo Guardrails, from NVIDIA, is an open toolkit where the team writes its own rules. Cloud filters, like Amazon Bedrock Guardrails or Azure AI Content Safety, are hosted checks I call over an API. I'd pick by where the app runs, how much control I need, and who keeps the rules up to date.

What are guardrail tools, in plain words?

A guardrail tool is a check that runs around an AI model. It reads what the user typed before the model sees it, and it reads the model's reply before the user sees that. If a check fails, the app blocks the message, hides the reply or hands the case to a person.

Think of a bank's payments team. Every transfer passes a fraud screen before it goes out, and a second check reviews it before the money lands. The screen is one layer of the bank's protection. Guardrail tools are ready-made screens for AI apps, and you place them around the model. A support bot that answers a bank's customers works the same way. A screen checks the customer's question, the bot drafts a reply, and a second screen checks the reply before the customer sees it.

Key words

Guardrail
A check on what goes into or comes out of an AI model.
Classifier
A model that sorts text into labels, such as safe or unsafe.
Risk category
A named kind of harm, such as hate or violence, that a check looks for.
Hosted filter
A check that a cloud provider runs for you, called over an API.
API
A way for one program to send a request to another over the internet and get a reply back.

What are the three kinds of guardrail tool?

Llama Guard, NeMo Guardrails and cloud filters each do a different job. Know what each one is, and who runs it.

  • Safety model

    Llama Guard

    An open-weight model from the Llama team that sorts a prompt or a reply into risk categories. You can run it yourself and fine-tune its categories.

  • Toolkit

    NeMo Guardrails

    An open toolkit from NVIDIA. The team writes its rules in YAML config files, and can call a safety model as one step.

  • Hosted service

    Cloud filters

    Amazon Bedrock Guardrails, Azure AI Content Safety and OpenAI moderation. You call an API, and the provider runs the checks.

  • “We introduce Llama Guard, an LLM-based input-output safeguard model geared towards Human-AI conversation use cases.”

    Llama Guard paper, on arXiv

  • “NeMo Guardrails is an open-source toolkit for easily adding programmable guardrails to LLM-based conversational systems.”

    NVIDIA, NeMo Guardrails paper

  • “Guardrails are made up of controls that specify the risk to detect, where to scan for it, and how the model or agent should respond when it is found.”

    Microsoft, Azure AI guardrails overview

The tools also combine. NVIDIA's own docs list Llama Guard among the community safety models that NeMo can call, so a team can run Llama Guard inside its NeMo rules.

Three kinds of guardrail tool

Your AI app

text in and out

Pick one or combine

Llama Guard

open safety classifier

NeMo Guardrails

your rules in config files

Cloud filters

hosted checks you call

Allow, block or ask

decided before anything is sent

  1. 1Your app sends its text to the tool it picks, or to several.
  2. 2The tool's verdict decides whether the text is allowed, blocked or sent to a person.
One app, three kinds of tool. The app sends its text to the tool it picks, or to several, and the verdict decides what happens next. A team often combines two of them.

How do the tools fit together in a real app?

Take a made-up claims assistant at a mid-size insurer. Customers ask about their claims in a chat, and the assistant drafts answers from the policy documents. The team puts a cloud filter on the way in and Llama Guard on the way out.

Layering tools in a claims assistant

Customer message

may hide orders for the model

Cloud filter

flags attacks and personal data

Claims model

drafts from policy documents

Llama Guard

checks draft against risk list

Answer or handoff

unsafe drafts go to a person

  1. 1The question enters the app, and it is read before the model.
  2. 2The cloud filter flags attacks and personal data before the model runs.
  3. 3The model's draft is passed on to Llama Guard before anyone sees it.
  4. 4Llama Guard checks the draft against the team's risk categories. Unsafe drafts go to a person.
A made-up insurer's claims assistant with two checks. The cloud filter screens what comes in, the model drafts the answer, and a second check reviews the draft before the customer sees it. Each tool covers one job.
  1. 1

    Screen the input

    The cloud filter flags prompt attacks (text written to trick the model) and personal data, such as a social security number or an address, before the model runs.

  2. 2

    Check the draft

    Llama Guard checks the drafted reply against a risk list the team has fine-tuned it to check for, such as promising a payout the policy does not cover. An unsafe draft goes to a claims handler, never to the customer.

  3. 3

    Log and test

    Every block is logged. The team tests the whole chain with real attempts, since misses only show up under attack.

What can't these tools do?

They lower the risk, and a determined attacker can still get past them. A filter reads patterns and categories, so a rephrased or encoded attack can slip through. Encoding means disguising text in another form. OWASP's 2026 guide says that semantic filters are evadable by rephrasing or encoding, and that low-resource and code-mixed inputs degrade their accuracy.

Language matters too. The Llama Guard 4 model card says the model has been optimized for English-language text, so other languages need their own testing.

Tip

Asked which tool is best? Don't name one. Say what job it does, where it runs, and who keeps its rules up to date.

What does the interviewer want to hear?

A strong answer covers

  • Three kinds: a safety model, a toolkit and hosted filters.
  • Llama Guard classifies text, and you can fine-tune its risk categories.
  • NeMo Guardrails adds your own rules, and can call other checks.
  • Cloud filters are hosted APIs with harm categories, and some also check personal data.
  • Tools lower the risk. Pair them with least privilege (each tool gets only the access it needs) and real tests.

Common traps

  • Trap"Install a guardrail library and the app is safe."

    BetterA library is one layer. Add limits in code and test with real attempts.

  • Trap"Just turn on the cloud filter and skip testing."

    BetterFilters miss rephrased attacks. Test the whole chain before launch.

  • Trap"Llama Guard is the one tool we need."

    BetterIt classifies text. It doesn't enforce what a tool may do, so code still checks each action.

Can you spot the weak point?

Spot the weak point

Which setting is the weak point in a claims assistant's guard setup?

Quick check

The team needs a safety classifier it can run on its own servers and tune to its own risk categories. Which tool fits best?

Can you answer these from memory?

Flash cards · tap a card to flip it

1 / 6

What will they ask next?

  1. Q205Input vs output guardrails?11 min
  2. Q218How do you build content moderation?11 min
  3. Q224What is a policy classifier layer?12 min
  4. Q212How do you detect and redact PII?13 min
  5. Q232What is over-refusal?11 min
  6. Q225What is the dual-LLM (quarantine) pattern?Coming soon

Learn it in depth

Last updated on 26 November 2026

Choosing guardrail tools for an AI product?

I design and build AI products and agents, and the checks around them. Book a short call and tell me what your app must never say or do.