Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/safety-in-building-agents-openai-api-workflow-guide.mdA 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

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. 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