Let's move our Ai::Agent class to be backed by ActiveRecord and store all our prompts and configuration in the database. This allows us to easily spin up and test new agents without writing or deploying any code.

Discussion (2)

To comment you need to sign up for a free account or sign in.
Ashish D. Ashish Darji 27 Feb Premium

It'd be great if you could show how to persist the conversation with a particular agent in the chat in future videos!

Pete H. Pete Hawkins 1 Apr Admin

In this video (https://rapidruby.com/lessons/60-persisting-chat-history) I show how to persist the messages into the DB. Is there anything missing you'd like me to cover?

Unlock 7 Hotwire tricks every Rails dev should know ⚡️

Level up your Rails skills with 7 powerful Turbo techniques in my free Hotwire Cheatsheet. Subscribe for updates on new videos, courses & more — no spam, just gems.