This repository contains 15 high-impact tools ported from the Agno framework to Regent, a Ruby framework for building agents and tools.
These tools provide a wide range of capabilities for Regent agents, from interacting with GitHub repositories to analyzing financial data, searching scientific papers, and manipulating CSV files.
Each tool follows Regent's design patterns and provides equivalent functionality to its Agno counterpart, while leveraging Ruby-specific features and libraries.
Add this to your application's Gemfile:
gem 'regent'
# Add any additional dependencies required by specific toolsAnd then execute:
$ bundle installEach tool is in its own subdirectory with its own documentation. See the README.md in each tool's directory for details. Most tools are tested reasonably well, should likely use VCR and make specs complete golden and error paths.
require 'regent'
require_relative 'path/to/github_tool'
# Initialize the agent with tools
agent = Regent::Agent.new(
tools: [
Regent::GitHubTool.new(access_token: ENV['GITHUB_ACCESS_TOKEN']),
Regent::ArXivTool.new
]
)
# Use the agent
response = agent.run("Find GitHub repositories about quantum computing and related ArXiv papers")For detailed documentation on each tool, please see documentation.md.
To run tests.... bx rspec spec....
Contributions are welcome! Please feel free to submit a Pull Request!
This project is licensed under the MIT License - see the LICENSE file for details.
-
Inspiration for some tools from the Agno framework
-
Regent framework for the Ruby agent architecture