openai-agents-js  by openai

JS/TS framework for multi-agent workflows and voice agents

Created 10 months ago
2,613 stars

Top 17.5% on SourcePulse

GitHubView on GitHub
Project Summary

This SDK provides a framework for building multi-agent workflows and real-time voice agents using JavaScript and TypeScript. It's designed for developers looking to orchestrate complex AI interactions, integrate tools, and implement robust guardrails, offering features like streaming, tracing, and parallelization.

How It Works

The framework operates on an agent loop where LLMs are configured with instructions, tools, and guardrails. Agents can dynamically hand off control to other agents or execute tools. The SDK supports structured outputs, streaming responses, and built-in tracing for debugging. It aims for provider-agnosticism, with adapters for OpenAI and the Vercel AI SDK.

Quick Start & Requirements

  • Install: npm install @openai/agents
  • Prerequisites: Node.js 22 or later, Deno, or Bun. OPENAI_API_KEY environment variable required for OpenAI models.
  • Documentation: http://localhost:4321 (local dev server)

Highlighted Details

  • Supports multi-agent workflows, tool integration, and dynamic handoffs.
  • Features structured outputs, streaming responses, and built-in tracing.
  • Includes guardrails for input/output validation and parallelization capabilities.
  • Offers real-time voice agent support via WebRTC/Websockets and a separate browser package.

Maintenance & Community

The project acknowledges contributions from the open-source community, specifically mentioning zod, Starlight, vite, vitest, pnpm, and Next.js.

Licensing & Compatibility

The SDK is open-source, intended for community expansion. Specific license details are not explicitly stated in the README, but its open-source nature suggests broad compatibility for development and integration.

Limitations & Caveats

The SDK has experimental support for Cloudflare Workers. Features like "Long running functions" and a full "Voice pipeline" (chaining speech-to-text and text-to-speech) are still under development.

Health Check
Last Commit

23 hours ago

Responsiveness

Inactive

Pull Requests (30d)
58
Issues (30d)
10
Star History
179 stars in the last 30 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems") and Elie Bursztein Elie Bursztein(Cybersecurity Lead at Google DeepMind).

NeMo-Agent-Toolkit by NVIDIA

1.4%
2k
Open-source library for connecting and optimizing teams of AI agents
Created 1 year ago
Updated 1 day ago
Starred by Gagan Bansal Gagan Bansal(Coauthor of AutoGen; Research Scientist at Microsoft Research), Elvis Saravia Elvis Saravia(Founder of DAIR.AI), and
1 more.

agent-framework by microsoft

6.8%
9k
AI agent and multi-agent workflow framework
Created 11 months ago
Updated 1 day ago
Starred by Russ d'Sa Russ d'Sa(Cofounder of LiveKit), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
7 more.

agents by livekit

0.8%
10k
Voice AI agent framework for building realtime applications
Created 2 years ago
Updated 22 hours ago
Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Yiran Wu Yiran Wu(Coauthor of AutoGen), and
13 more.

openai-agents-python by openai

0.7%
21k
Python SDK for multi-agent workflows
Created 1 year ago
Updated 2 days ago
Starred by Eric Zhu Eric Zhu(Coauthor of AutoGen; Research Scientist at Microsoft Research), Elvis Saravia Elvis Saravia(Founder of DAIR.AI), and
8 more.

langgraph by langchain-ai

1.9%
29k
Agent orchestration framework for building controllable agents
Created 2 years ago
Updated 1 day ago
Feedback? Help us improve.