Guides · 2026-07-12

Safety in building agents | OpenAI API

API API Reference Codex ChatGPT Docs Use cases Resources Resources Overview Features Configuration Developers Security Administration Use Cases Resources Certain agent workflow patterns are more vulnerable to risk. In chat w

Safety in building agents | OpenAI API

Source-led brief

API API Reference Codex ChatGPT Docs Use cases Resources Resources

Overview Features Configuration Developers Security Administration Use Cases Resources

Certain agent workflow patterns are more vulnerable to risk. In chat workflows, two important considerations are protecting user input and being careful about MCP tool calling.

Use the following guidance to reduce the attack surface and mitigate these risks. However, even with these mitigations, agents won’t be perfect and can still make mistakes or be tricked; as a result, it’s important to understand these risks and use caution in what access you give agents and how you apply agents.

Thai editorial note

บทความนี้อยู่ในหมวดคู่มือการใช้งาน และคัดสรรจากแหล่งข้อมูลต้นฉบับเพื่อใช้เป็นจุดเริ่มต้นในการศึกษา ทีมบรรณาธิการควรตรวจสอบรายละเอียด ราคา ความพร้อมใช้งาน และเงื่อนไขในประเทศไทยก่อนนำไปใช้งานจริง

Verification

  • Original source: developers.openai.com
  • Discovery: Agent-Reach / Exa
  • Clean extraction: jina-reader
  • This page is a source summary, not an independent product review.

Source: developers.openai.com ↗