nrrso

nrrso

SwarmEx - a lightweight, Elixir-based library designed for orchestrating AI agents

Hi everyone! :honeybee:

I’m excited to introduce SwarmEx — a lightweight, Elixir-based library designed for orchestrating AI agents with control, flexibility, and ease. Inspired by OpenAI’s Swarm Python library, SwarmEx provides core tools to help developers create, coordinate, and manage AI agent networks.

Why SwarmEx?

SwarmEx was built to make agent orchestration in Elixir not just effective but enjoyable. Whether you’re managing complex workflows, handling specialized agents, or developing autonomous systems, SwarmEx gives you a straightforward framework with:

  • Seamless tool integration for custom tasks
  • Observability through built-in telemetry (WIP)
  • Robust error handling for dependable fault tolerance (WIP)
  • A streamlined developer experience

SwarmEx isn’t a one-to-one implementation of the OpenAI Swarm library but is inspired by its core ideas.

Getting Started

Installing SwarmEx is as easy as adding it to your mix.exs dependencies:

def deps do
  [
    {:swarm_ex, "~> 0.1.0"}
  ]
end

For a practical introduction, check out the following Livebook, where you can explore how to set up and interact with agents in real time:

Run in Livebook

Documentation & Feedback

Full documentation is available on Hexdocs. I would love to hear your feedback, ideas, or use cases! Feel free to open issues, submit PRs, or simply reach out.

Please keep in mind: SwarmEx is in alpha and rough around the edges but already usable.

Thanks, and looking forward to your feedback and ideas,
Norris

Most Liked

nrrso

nrrso

Thanks! I think that elixir lends itself very well for certain ML use-cases, like in the case of LLM agents. Sadly because of lacking tooling in the ecosystem we have a chicken and egg problem right now. And as always in the elixir community, beginner friendly material that is up to date is rare as well.

I am planning to add additional livebook’s with some more complex examples that mirror some examples of the openai/swarm repo. Sadly a day has only 24 hours :slight_smile:

Yeah, second post is not from me. Just flagged it as Spam / Off-Topic.

nulltree

nulltree

Nice, thanks for a cool contribution to the ecosystem - hope I find the time to check it out soon!

Btw I assume the second message is not you again, but a AI generated summary of your post of a newly registered user/bot? :smile:

Where Next?

Popular in Libraries Top

blatyo
https://www.conduitframework.com/ The best overview for how things are tied together is this presentation. Modules and functions are pre...
New
OvermindDL1
Been making an MLElixir thing (not released yet…) for fun in spare time in the past day. I’m just trying to see how much I can get an ML...
132 13487 106
New
mhanberg
I just released the first version of Temple: an HTML DSL for Elixir and Phoenix! You can read this blog post or the docs for more info...
New
vic
Expat is a tiny experiment I did for extracting patterns and being able to reuse them (compose and share patterns between elixir librarie...
New
mindok
What is ContEx? A pure Elixir server-side data plotting/charting library outputting SVG. It has nice barcharts in particular and works g...
New
pkrawat1
Hey guyz We at @aviabird are working on a payment library in elixir/phoenix. We are targeting March 2018 to add 56 Gateways to it. Have...
New
entone
ExARI An Elixir library for interfacing with Asterisk using the ARI protocol. Be sure to check out the example application https://git...
New
KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 35421 110
New
gabrielpoca
Hello everyone! I want to share with you something that I’m really proud of: https://stillstatic.io/ Still is a static site builder for...
New
bluzky
You may know https://ui.shadcn.com/, a UI component library for React. I really love it’s design style and components. I’ve built some co...
381 12391 119
New

Other popular topics Top

belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1140 51847 244
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
977 41022 311
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 45766 226
New
malloryerik
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode. The solution seems to be, in a hyphena...
New
danschultzer
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch. This project took far...
548 27727 240
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New

Sub Categories:

We're in Beta

About us Mission Statement