swarm  by openai

Multi-agent orchestration framework for lightweight agent coordination

created 1 year ago
20,178 stars

Top 2.2% on sourcepulse

GitHubView on GitHub
Project Summary

This project provides an educational framework for building lightweight, controllable, and testable multi-agent systems. It's designed for developers interested in exploring agent orchestration patterns, particularly when complex logic is difficult to encode in a single prompt.

How It Works

Swarm utilizes two core abstractions: Agents and handoffs. An Agent encapsulates instructions and tools (Python functions). Agents can dynamically hand off conversations to other Agents by returning them from function calls. The framework orchestrates these interactions using OpenAI's Chat Completions API, managing state between calls by passing conversational history and context variables. This client-side orchestration allows for flexible composition of agents into complex workflows.

Quick Start & Requirements

Highlighted Details

  • Lightweight, client-side orchestration for multi-agent systems.
  • Supports dynamic agent handoffs and context variable updates.
  • Automatically converts Python functions to JSON Schemas for tool use.
  • Enables streaming responses and provides event delimiters for agent switches.

Maintenance & Community

Managed by the OpenAI Solution team. Core contributors include Ilan Bigio, James Hills, Shyamal Anadkat, Charu Jaiswal, Colin Jarvis, and Katia Gil Guzman.

Licensing & Compatibility

The repository does not explicitly state a license in the README.

Limitations & Caveats

The project is marked as experimental and educational. OpenAI recommends migrating to the production-ready OpenAI Agents SDK for all production use cases, as Swarm is being replaced by this newer SDK.

Health Check
Last commit

4 months ago

Responsiveness

1 week

Pull Requests (30d)
0
Issues (30d)
1
Star History
641 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Steven Hao Steven Hao(Cofounder of Cognition), and
6 more.

openai-agents-python by openai

1.5%
13k
Python SDK for multi-agent workflows
created 4 months ago
updated 23 hours ago
Feedback? Help us improve.