openai · OpenAI Platform Docs
Safety in building agents | OpenAI API
Provides guidance on implementing safety guardrails, mitigating risks like prompt injection, and applying best practices for building secure AI agents.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Safety in building agents | OpenAI API
Provides guidance on implementing safety guardrails, mitigating risks like prompt injection, and applying best practices for building secure AI agents.
When To Use
Use when designing agent architectures to prevent prompt injection, unauthorized tool usage, or other safety-related vulnerabilities.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/safety-in-building-agents-openai-api-workflow-guide.md | A guide detailing risk types and mitigation strategies for building safe multi-agent workflows using the OpenAI API. | Questions about a guide detailing risk types and mitigation strategies for building safe multi-agent workflows using the OpenAI API. |
What This Skill Covers
- As you build and deploy agents with Agent Builder, it’s important to understand the risks. Learn about risk types and how to mitigate them when building mult...
- Main sections:
Types of risk,Prompt injections,Private data leakage,Don’t use untrusted variables in developer messages,Use structured outputs to constrain data flow.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://developers.openai.com/api/docs/guides/agent-builder-safety
