Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thedayisntgray/swarm-rb

A port of Open AI's Swarm library written in Ruby
https://github.com/thedayisntgray/swarm-rb

Last synced: 2 months ago
JSON representation

A port of Open AI's Swarm library written in Ruby

Awesome Lists containing this project

README

        

![Swarm Logo](https://github.com/user-attachments/assets/4fe8217b-8586-4bd7-b0fd-e887d4740f19)

# Swarm-RB (experimental, educational)

An educational framework exploring ergonomic, lightweight multi-agent orchestration in Ruby. It is a port of [Swarm](https://github.com/openai/swarm/tree/main/swarm) created by Open AI.

## Demo





## Install

```shell
gem install swarm-rb
```

Or, if using Bundler, add this line to your application's Gemfile:

```ruby
gem 'swarm-rb', git: 'https://github.com/openai/swarm-rb.git'
```

And then execute:

```shell
bundle install
```

# Examples

Check out `/examples` for inspiration!

- [`basic`](examples/basic): Simple examples of fundamentals like setup, function calling, handoffs, and context variables.

## Contributing

Everyone is welcome to contribute to this. This gem was created just because I wanted to use Open AI's swarm framework in Ruby. There is likly a ton of 🍌s code in this repo since I relied heavily on LLMs to create this gem in < 2 days.

It needs more testing, documentation clean up and expantion on the examples to parity the Open AI's [Swarm](https://github.com/openai/swarm) library.