- Step1: Add gem 'agent_rails' to your Gemfile and run bundle install
- Step2: Configure your LLM provider API key in config/initializers/agent_rails.rb
- Step3: Generate an agent with rails generate agent MyAgent and define prompts
- Step4: Register custom tools by creating classes under app/tools
- Step5: Invoke your agent in controllers or jobs and render responses in views
- Step6: Use built-in memory adapters to store conversation context across requests