Testing guardrails

A guardrail you haven't tested is only a hope. Test it at three levels. Unit-test the Model Armor template against a known corpus, prove the ADK plugin blocks real turns, and check that it fails closed when the service is down.

10 minPro

Checking your access…

This is a Pro lesson

Sign in to continue. Pro members get every animated lesson, its code and its quiz, across ADK, Agent Platform, Agent QA and CX Agent Studio.

Get Pro for ₹999

You're signed in, but this lesson is part of Pro

Get every Pro lesson, its code and its quiz for ₹999, once. Lifetime access, including lessons added later.

Unlocking your lesson…

If this doesn't change in a moment, reload the page.

In this module: Safety testing

  1. Red-teaming agents Prompt injection, jailbreaks and data leaks. Pro
  2. Testing guardrails Proving the guardrails really block. Pro