openai-assistant-swarm  by Mintplex-Labs

Node.js library for OpenAI assistant task delegation

created 1 year ago
557 stars

Top 57.4% on SourcePulse

GitHubView on GitHub
Project Summary

This library extends the OpenAI Node.js SDK to enable a "swarm" of specialized AI assistants to handle tasks collaboratively. It targets developers building autonomous AI agents, allowing a single "manager" assistant to intelligently delegate work to multiple other assistants in parallel, simplifying complex task orchestration.

How It Works

The Swarm Manager acts as an extension to the OpenAI NodeJS SDK, adding a .swarm method. It facilitates communication between a designated manager assistant and other assistants registered with the OpenAI API. The library handles the complexity of identifying which assistant is best suited for a given sub-task, initiating parallel threads for each, and aggregating their responses. This approach offloads the intricate logic of task decomposition and delegation from the developer.

Quick Start & Requirements

Highlighted Details

  • Enables delegation of prompts to multiple OpenAI assistants simultaneously.
  • Provides event listeners for tracking parent and child assistant completion.
  • Offers utility functions to fetch all or specific OpenAI assistants by ID, simplifying assistant discovery.
  • Supports asynchronous execution and event-driven responses for better workflow integration.

Maintenance & Community

  • Developed by Mintplex Labs Inc.
  • Active development indicated by recent commits and releases.
  • Community links (Discord/Slack) are not explicitly mentioned in the README.

Licensing & Compatibility

  • The README does not specify a license. This is a critical omission for evaluating commercial use or closed-source integration.

Limitations & Caveats

The library is presented as an extension to the OpenAI Node.js SDK, implying a dependency on OpenAI's service availability and API changes. The lack of explicit licensing information is a significant caveat for adoption. Streaming is noted as not yet available for child assistant responses.

Health Check
Last commit

1 year ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
11 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.