Skip to content
masterclass Buddy

AI Agents · Concept

Guardrails

Guardrails add safety checks to LangChain agents. They can filter content, protect PII, validate outputs, and pause sensitive tool actions for human approval.

Last updated

Syntax

create_agent(model=..., tools=..., middleware=[...])

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Middleware
  • PII detection
  • Human-in-the-loop
  • Testing agents

Source: Guardrails. Checked 2026-11-03.