← ClaudeAtlas

openai-agentslisted

Build AI applications with OpenAI Agents SDK - text agents, voice agents, multi-agent handoffs, tools with Zod schemas, guardrails, and streaming. Prevents 11 documented errors. Use when: building agents with tools, voice agents with WebRTC, multi-agent workflows, or troubleshooting MaxTurnsExceededError, tool call failures, reasoning defaults, JSON output leaks.
rkz91/coco · ★ 3 · AI & Automation · score 72
Install: claude install-skill rkz91/coco
# OpenAI Agents SDK Build AI applications with text agents, voice agents (realtime), multi-agent workflows, tools, guardrails, and human-in-the-loop patterns. --- ## Quick Start ```bash npm install @openai/agents zod@4 # v0.4.0+ requires Zod 4 (breaking change) npm install @openai/agents-realtime # Voice agents export OPENAI_API_KEY="your-key" ``` **Breaking Change (v0.4.0)**: Zod 3 no longer supported. Upgrade to `zod@4`. **Runtimes**: Node.js 22+, Deno, Bun, Cloudflare Workers (experimental) --- ## Core Concepts **Agents**: LLMs with instructions + tools ```typescript import { Agent } from '@openai/agents'; const agent = new Agent({ name: 'Assistant', tools: [myTool], model: 'gpt-5-mini' }); ``` **Tools**: Functions with Zod schemas ```typescript import { tool } from '@openai/agents'; import { z } from 'zod'; const weatherTool = tool({ name: 'get_weather', parameters: z.object({ city: z.string() }), execute: async ({ city }) => `Weather in ${city}: sunny`, }); ``` **Handoffs**: Multi-agent delegation ```typescript const triageAgent = Agent.create({ handoffs: [specialist1, specialist2] }); ``` **Guardrails**: Input/output validation ```typescript const agent = new Agent({ inputGuardrails: [detector], outputGuardrails: [filter] }); ``` **Structured Outputs**: Type-safe responses ```typescript const agent = new Agent({ outputType: z.object({ sentiment: z.enum(['positive', 'negative']) }) }); ``` --- ## Text Agents **Basic**: `const result = await run(ag