Skip to content
Agent

OpenAI Agents SDK Documentation

by disler

AI Summary

A Python SDK for building production-ready agentic AI applications with Claude, featuring agents, handoffs, and guardrails for complex multi-agent workflows. Developers building AI agents and multi-tool systems will benefit from this lightweight, easy-to-learn framework.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to set up the "OpenAI Agents SDK Documentation" agent in my project.

Please run this command in my terminal:
# Add AGENTS.md to your project root
curl --retry 3 --retry-delay 2 --retry-all-errors -o AGENTS.md "https://raw.githubusercontent.com/disler/claude-code-is-programmable/main/ai_docs/fc_openai_agents.md"

Then explain what the agent does and how to invoke it.

Description

Scale your compute with Claude Code as a programmable agentic coding tool

Overview

The OpenAI Agents SDK enables you to build agentic AI apps in a lightweight, easy-to-use package with very few abstractions. It's a production-ready upgrade of the previous experimentation for agents, Swarm. The Agents SDK has a very small set of primitives: • Agents, which are LLMs equipped with instructions and tools • Handoffs, which allow agents to delegate to other agents for specific tasks • Guardrails, which enable the inputs to agents to be validated In combination with Python, these primitives are powerful enough to express complex relationships between tools and agents, and allow you to build real-world applications without a steep learning curve. In addition, the SDK comes with built-in tracing that lets you visualize and debug your agentic flows, as well as evaluate them and even fine-tune models for your application.

Basic Usage

`python from agents import Agent, handoff billing_agent = Agent(name="Billing agent") refund_agent = Agent(name="Refund agent") triage_agent = Agent(name="Triage agent", handoffs=[billing_agent, handoff(refund_agent)]) `

Tools

Tools let agents take actions: things like fetching data, running code, calling external APIs, and even using a computer. There are three classes of tool

OpenAI Agents SDK Documentation

This file contains documentation for the OpenAI Agents SDK, scraped from the official documentation site.

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 10mo ago
Stale
Adoption100+ stars on GitHub
295 ★ · Growing
DocsMissing or thin
Undocumented

GitHub Signals

Stars295
Forks88
Issues4
Updated10mo ago
View on GitHub
No License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Claude Code
Claude.ai