A step-by-step guide to building an AI agent in Ruby using the llm.rb library. The agent answers queries from UNIX man pages by implementing two tools: one wrapping the `man(1)` command to read man pages, and another wrapping `apropos(1)` to search them. The agent is persisted to a database via ActiveRecord integration. The post covers tool definition, agent setup with concurrency options, database migration, and a working end-to-end example.
Sort: