ruby-nano-bots
Ruby Implementation of Nano Bots: small, AI-powered bots that can be easily shared as a single file, designed to support multiple providers such as Anthropic Claude, Cohere Command, Google Gemini, Maritaca AI, Mistral AI, Ollama, OpenAI ChatGPT, and others, with support for calling tools (functions).
File Explorer
Download Latest Version (.zip)- nb
- anthropic.rb
- base.rb
- cohere.rb
- google.rb
- maritaca.rb
- mistral.rb
- ollama.rb
- openai.rb
- tools.rb
- adapter.rb
- crypto.rb
- embedding.rb
- provider.rb
- storage.rb
- stream.rb
- cli.rb
- eval.rb
- repl.rb
- tools.rb
- cartridges.rb
- instance.rb
- security.rb
- session.rb
- adapters.rb
- affixes.rb
- default.rb
- fetch.rb
- interaction.rb
- parser.rb
- safety.rb
- streaming.rb
- tools.rb
- hash.rb
- tokens.rb
- tokens.rb
- tokens.rb
- tools.rb
- tokens.rb
- tokens.rb
- tokens.rb
- tokens.rb
- tools.rb
- openai.rb
- cartridges.rb
- cli.rb
- nano-bots.rb
- storage_spec.rb
- claude-3-5-sonnet.yml
- claude-3-haiku.yml
- claude-3-opus.yml
- claude-3-sonnet.yml
- command-light.yml
- command-r-plus.yml
- command-r.yml
- command.yml
- gemini-1-0-pro.yml
- gemini-1-5-flash.yml
- gemini-1-5-pro.yml
- gemini-pro-gen-lang-api.yml
- sabia-2-medium.yml
- sabia-2-small.yml
- large.yml
- medium.yml
- small.yml
- phi-3.yml
- gpt-3-5-turbo.yml
- gpt-4-turbo.yml
- gpt-4o.yml
- affixes.yml
- block.md
- markdown.md
- meta.md
- streaming.yml
- tools.md
- tools.yml
- tools.yml
- tools.yml
- affixes_spec.rb
- interaction_spec.rb
- parser_spec.rb
- streaming_spec.rb
- tools_spec.rb
- hash_spec.rb
- tools_spec.rb
- tools_spec.rb
- run-all-models.rb
- run-model.rb
- spec_helper.rb
- baseline.yml
- default.yml
- fennel.lua
- LICENSE
- gem.rb
- .gitignore
- .rspec
- .rubocop.yml
- .ruby-version
- docker-compose.example.yml
- Gemfile
- Gemfile.lock
- LICENSE
- nano-bots.gemspec
- README.md
# Installation Guide
git clone https://github.com/icebaker/ruby-nano-bots
Downloads the entire project code from GitHub to your computer.
cd ruby-nano-bots
Moves into the project folder you just downloaded.
2. Official Install Script
Easy Recommended- Ruby Ruby is required to use gem.
gem install nano-bots -v 3.4.0
Installs the package published on RubyGems directly.
curl -s https://raw.githubusercontent.com/babashka/babashka/master/install | sudo bash
Type this command into your terminal and run it.
Pulled directly from this repo's README.
3. Docker
Easy- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
cp docker-compose.example.yml docker-compose.yml
Runs the command against the services defined in the compose file.
docker compose run nano-bots
Runs the command against the services defined in the compose file.
Pulled directly from this repo's README.
4. Ruby
Easybundle install
Installs the Ruby libraries listed in the Gemfile.
bundle
Type this command into your terminal and run it.
bundle exec ruby spec/tasks/run-all-models.rb
Type this command into your terminal and run it.
bundle exec ruby spec/tasks/run-model.rb spec/data/cartridges/models/openai/gpt-4-turbo.yml
Type this command into your terminal and run it.
bundle exec ruby spec/tasks/run-model.rb spec/data/cartridges/models/openai/gpt-4-turbo.yml stream
Type this command into your terminal and run it.
Pulled directly from this repo's README.
