Checked at the Boundary
An Independent Guide to the Guardrails AI Framework for Validators, Guards and Structured Output in Python
-
- $0.99
-
- $0.99
Publisher Description
An independent, practical guide to checking what goes into a language model and what comes out of it, using the open-source, Apache-2.0-licensed Guardrails AI framework for Python as the worked example. The book follows one fictional regional water utility, Stilbury Water, as its small engineering team puts guards around three AI features: a customer question assistant, a billing-dispute intake form that turns free text into structured records, and a summarizer for field technicians' notes. You learn validators, every on-fail action, input and output guards, structured output with Pydantic models, re-asking, streaming, async code and testing your own validators. Later chapters cover the validator catalog after its 2026 move to ordinary Python packages, vetting validators and their models, sensitive-data, safety and grounding checks and what they miss, running guards as a service under its own license, and operating guards over time. All main examples were run against version 0.11.0 with a local stand-in model, so no key or account is needed. Includes Python code, a hands-on lab, review questions with answers and a glossary.