Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ riffer Public

The all-in-one Ruby framework for building AI-powered applications and agents.

License

Notifications You must be signed in to change notification settings

janeapp/riffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

125 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Riffer

The all-in-one Ruby framework for building AI-powered applications and agents.

Gem Version

Requirements

  • Ruby 3.2 or later

Installation

Install the released gem:

gem install riffer

Or add to your application's Gemfile:

gem 'riffer'

Quick Start

require 'riffer'

# Configure your provider
Riffer.configure do |config|
  config.openai.api_key = ENV['OPENAI_API_KEY']
end

# Define an agent
class EchoAgent < Riffer::Agent
  model 'openai/gpt-4o'
  instructions 'You are an assistant that repeats what the user says.'
end

# Use the agent
agent = EchoAgent.new
puts agent.generate('Hello world')

Documentation

For comprehensive documentation, see the docs directory:

API Reference

Generate the full API documentation with:

bundle exec rake docs

Then open doc/index.html in your browser.

Development

After checking out the repo, run:

bin/setup

Run the test suite:

bundle exec rake test

Check and fix code style:

bundle exec rake standard
bundle exec rake standard:fix

Run the interactive console:

bin/console

Contributing

  1. Fork the repository and create your branch: git checkout -b feature/foo
  2. Run tests and linters locally: bundle exec rake
  3. Submit a pull request with a clear description of the change

Please follow the Code of Conduct.

Changelog

All notable changes to this project are documented in CHANGELOG.md.

License

Licensed under the MIT License. See LICENSE.txt for details.

Maintainers

About

The all-in-one Ruby framework for building AI-powered applications and agents.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Contributors 8

Languages