Regent is a small and elegant Ruby framework for building AI agents that can think, reason, and take actions through tools. It provides a clean, intui

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2025-01-16 17:30:09

Regent is a small and elegant Ruby framework for building AI agents that can think, reason, and take actions through tools. It provides a clean, intuitive interface for creating agents that can solve complex problems by breaking them down into logical steps.

Regent is currently an experiment intended to explore patterns for building easily traceable and debuggable AI agents of different architectures. It is not yet intended to be used in production and is currently in development.

Regent provides an interface for invoking an LLM through an instance of Regent::LLM class. Even though Agent initializer allows you to pass a modal name as a string, sometimes it is useful to create a model instance if you want to tune model params before passing it to the agent. Or if you need to invoke a model directly without passing it to an Agent you can do that by creating an instance of LLM class:

By default, Regent will try to fetch API keys for corresponding models from environment variables. Make sure that the following ENV variables are set depending on your model choice:

Leave a Comment