Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/thedayisntgray/swarm-rb
- Owner: thedayisntgray
- Created: 2024-10-13T21:23:04.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-14T14:53:12.000Z (3 months ago)
- Last Synced: 2024-11-01T08:30:00.164Z (2 months ago)
- Language: Ruby
- Size: 18.6 KB
- Stars: 17
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
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.