activeagent  by activeagents

Rails framework for agent apps

created 1 year ago
624 stars

Top 53.8% on sourcepulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

This project provides ActiveAgent, a Ruby on Rails framework for building AI-powered agent applications. It simplifies the creation of agents that can interact with users, leverage AI models for tasks like text generation and embedding, and integrate with external tools or actions. The target audience includes Rails developers looking to incorporate AI capabilities into their web applications.

How It Works

ActiveAgent uses a convention-over-configuration approach, generating agent classes and associated view templates. Agents inherit from ActiveAgent::Base and define actions that can be invoked via a structured prompt interface. This interface manages message content, roles, action definitions, and context. Generation Providers abstract the interaction with AI services (like OpenAI or Ollama), handling API configuration, prompt completion, and embedding generation. Actions can be defined as methods within agent classes, automatically exposed as callable tools with schema definitions for AI interaction.

Quick Start & Requirements

  • Install via RubyGems: gem install activeagent
  • Rails integration: Run rails generate active_agent:install
  • Requires a Rails application.
  • Configuration for AI providers (e.g., OpenAI API key) is managed in config/active_agent.yml and Rails credentials.
  • Official documentation: https://github.com/activeagents/activeagent (linked in README)

Highlighted Details

  • Supports multiple AI providers (OpenAI, Ollama) for generation and embedding.
  • Enables defining custom actions (tools) that agents can execute.
  • Provides a structured prompt interface for composing AI interactions.
  • Integrates with Active Job for queued AI generation tasks.
  • Generates text template views for agent actions.

Maintenance & Community

The project is maintained by activeagents. Further community or roadmap information is not detailed in the README.

Licensing & Compatibility

The README does not explicitly state a license. Compatibility with commercial or closed-source applications is not specified.

Limitations & Caveats

The README does not detail specific limitations, known bugs, or deprecation status. The lack of an explicit license may pose a barrier to commercial adoption.

Health Check
Last commit

1 day ago

Responsiveness

1 day

Pull Requests (30d)
34
Issues (30d)
46
Star History
166 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.