What are guardrails?
Guardrails are checks that validate the input to an AI agent, its output, or its tool calls, and can stop a run when a check fails.
Also written: AI guardrails, agent guardrails, tripwires
Explained
The word guardrails is used loosely across vendors and has no single specification. This entry follows the OpenAI Agents SDK documentation, which is one vendor's description of the idea. Other frameworks use the term for related but different mechanisms.
In that SDK, guardrails are checks and validations on what goes into an agent and what comes out. The docs give the example of a fast, cheap model screening a request before a slower, expensive agent runs. The docs describe input and output guardrails, and add tool guardrails for function-tool calls. Input guardrails check the initial user input and run only for the first agent in a chain. Output guardrails check the final output and run only for the agent that produces it. Tool guardrails wrap function tools and run on each call, before or after execution.
When a check fails it signals a tripwire. The runner then raises an exception and halts execution. Input guardrails run in parallel with the agent by default, which is faster but means the agent may already have used tokens or run tools before the tripwire fires. A blocking mode finishes the check first.
The page lists limits: tool guardrails do not apply to handoff calls, hosted tools or built-in execution tools, and it says Agent.as_tool() does not currently expose tool-guardrail options directly.
Primary source
Guardrails - OpenAI Agents SDK (openai.github.io), read Oct 26, 2026
This entry paraphrases the page above. Sources change; check it for the current wording.
Listings that use this
The 5 top-ranked listings tagged for Guardrails. Rank weighs adoption, freshness, documentation and publisher identity; how we rank and grade. Money never changes the order.
- 0.878score
ai-coding-agent-guardrails
devops-skills
Secure AI coding agents (Claude Code, Cursor, Codex, Copilot) with permission boundaries, secret protection, code review gates, and safe sandbox…
SkillAFreshness: A★ 48.4KClaude Code +9 - 0.872score
ai-inference-service-mesh
devops-skills
Use verified service mesh patterns for AI inference traffic management, mTLS, canary releases, policy enforcement, and cross-cluster resilience.
SkillAFreshness: A★ 48.4KClaude Code +9 - 0.855score
aig-scanner
TencentOfficial
A.I.G Scanner — AI security scanning for infrastructure, AI tools / skills, AI Agents, and LLM jailbreak evaluation via Tencent Zhuque Lab AI-Infra-Guard.
SkillAFreshness: A★ 7.1KClaude Code +9 - 0.848score
git-guardrails-claude-code
vinvcn
设置 Claude Code hooks,在危险 git commands(push、reset --hard、clean、branch -D 等)执行前阻止它们。适用于用户想防止破坏性 git 操作、添加 git safety hooks,或在 Claude Code 中阻止 git push/reset 时。
SkillAFreshness: A★ 5.2KClaude Code +9 - 0.846score
plano-agent-skills
katanemo
Best practices for building agents and agentic applications with Plano, including configuration, routing, orchestration, guardrails, observability, and…
SkillAFreshness: A★ 7.1KClaude Code +9
Related
Cite this page
What are guardrails?. Agent Mart. https://agentmart.dev/glossary/guardrails (last updated 2026-10-26)
Written Oct 26, 2026, updated Oct 26, 2026. All glossary terms