— in three parts. Model Layer Request app/models/.../request ↓ Review app/models/.../review → External LLM API ↓ API client app/models/.../api_client 7
missing AI layer in the Rails framework, offering a structured approach to building AI-powered applications through Agent Oriented Programming. https://github.com/activeagents/activeagent https://docs.activeagents.ai/framework#core-architecture 13
│ └── review_agent.rb └── views/ └── agents/ └── review/ Provider and model live in config. default: &default openai: service: 'OpenAI' api_key: <%= ENV['OPENAI_API_KEY'] %> model: 'gpt-5.2' temperature: 0.1 gemini: # can be defined the same way development: <<: *default test: <<: *default 14
Agent, another view. A summary? SummaryAgent . views/agents/summary/ . We didn’t have to invent a new place. Not an LLM API service class — AI as a concern, contained in something that feels like MVC. 18
Active Storage Action Cable Sending emails Handling files WebSockets Mailers, views, delivery configuration Attachments, blobs, storage services Channels, connections, broadcasting Each responsibility has its own structure and conventions. 21