agents
A ruby library for building and managing AI agents within your application.
Getting Started
Gemfile:
gem 'ruby-agents'
bundle install
OR
$ gem install ruby-agents
require 'agents'
Usage
require 'agents'
Built-in Agents
Building Your Own Agents
Using a Dispatcher
Running Actions
Prompt Injection
At this time there is no built-in protection from prompt injection/jailbreak/etc.
Testing
Use tldr
to run the tests.
$ bundle install
$ tldr --watch
By default, no network calls are made while testing. If you want to test the full path into OpenAI, you can run that with:
$ OPENAI_ACCESS_TOKEN="sk-123YourToken" bundle exec ruby test/test_openai.rb