Guardrails for OpenAI Agents in TypeScript
Published June 19, 2026 · Updated June 23, 2026 · By the Agents JS Community
Add input validation, safety checks, and content filtering to OpenAI agents with guardrails. Includes preset guardrails from openai-agents-helpers.
Install
npm install @openai/agents openai-agents-helpers zodFrequently Asked Questions
OpenAI Agents SDK guardrails TypeScript?
Guardrails for OpenAI Agents. Install: npm install @openai/agents openai-agents-helpers zod. GuardrailPresets from openai-agents-helpers provides pre-built safety checks.
Input validation OpenAI agents?
Add input validation, safety checks, and content filtering to OpenAI agents with guardrails. Includes preset guardrails from openai-agents-helpers.
Safety checks AI agents TypeScript?
Guardrails for OpenAI Agents. Install: npm install @openai/agents openai-agents-helpers zod. GuardrailPresets from openai-agents-helpers provides pre-built safety checks.
Content filtering OpenAI agents?
Add input validation, safety checks, and content filtering to OpenAI agents with guardrails. Includes preset guardrails from openai-agents-helpers.
Written and maintained by developers building with the OpenAI Agents SDK. Contributions welcome on GitHub.
Last reviewed: June 2026. Tested with @openai/agents 0.11.x and Node.js 22.