RubyLLM 1.12 introduces a DSL for defining reusable AI agents as Ruby classes. Agents are demystified as LLMs with tool-calling capabilities—no orchestration frameworks needed. The release adds an Agent base class with macros for model configuration, instructions, tools, and temperature, supporting lazy evaluation for runtime
•5m read time• From paolino.me
Table of contents
What’s an Agent?RubyLLM Always Had ThisThe Reuse ProblemRubyLLM 1.12: A DSL for AgentsRuntime ContextPrompt ConventionsRails IntegrationAlso in 1.12Already in ProductionThe PointSort: