OpenAI has released a new framework called Swarm that looks to improve how multiple AI agents interact and coordinate with each other. It is intended to serve as a blueprint to help developers structure several networks of AI agents.
“Swarm is not an official OpenAI product. Think of it more like a cookbook. It’s experimental code for building simple agents. It’s not meant for production and won’t be maintained by us,” Shyamal Anadkat, a researcher at OpenAI, wrote in a post on X.
The experimental framework by OpenAI is yet another indicator of the tech industry’s evident shift towards building AI agents for enterprises that are capable of handling various tasks on their own. These multi-agent systems could diminish the role of humans in decision-making, raising questions about job losses as well as posing potential bias and security risks.
OpenAI described Swarm as a framework that “focuses on making agent coordination and execution lightweight, highly controllable, and easily testable.”
Swarm provides developers with a roadmap on how to go about creating and structuring multi-agent AI systems that are designed to undertake complex tasks autonomously.
The two building blocks of the Swarm framework are ‘agents’ and ‘handoffs’. “An Agent encompasses instructions and tools, and can at any point choose to hand off a conversation to another Agent,” the ChatGPT-maker said.
OpenAI further characterised AI agents as more than “someone who does X”. “It can also be used to represent a very specific workflow or step defined by a set of instructions and functions (e.g. a set of steps, a complex retrieval, single step of data transformation, etc),” it added.
It has made the Swarm code and other assets accessible on GitHub for free.
Companies can potentially use the Swarm framework to create networks of specialised, interconnected AI agents to generate sales leads, provide customer support, develop marketing campaigns, and more – with little to no human intervention.
A developer has already applied the framework to develop an open-source project that implements a hierarchy of AI agents – each with their own unique role and responsibilities.
OpenAI’s experimental Swarm framework has revived discussions about the impact of AI-driven automation on enterprises.
One of the major concerns that come with multi-agent AI systems is job displacement. While some fear that such automated networks may trigger mass layoffs, especially with respect to white collar jobs, others argue that such disruptive technologies will lead to an evolution of the nature of work.
Networks of autonomous AI agents could also malfunction and pose security risks when left to operate on their own. Robust safeguards are needed to prevent bias in decisions taken by these AI agents. “Evaluations are crucial to any project, and we encourage developers to bring their own eval suites to test the performance of their swarms,” OpenAI said on the GitHub page.