Enclave
06-Mar-2026 311
An MRuby sandbox for running arbitrary Ruby code from LLMs
Like this content? Use OpenGraph+ for more of it
OpenGraph+ generates beautiful link previews for your Rails app. Support Beautiful Ruby by connecting your app in 10 minutes.
I’ve been playing around with adding AI features to Rails apps and ran into a problem: tool calling doesn’t scale.
The standard approach is to define discrete functions, the LLM picks which one to call, and I execute it. That works great for fixed actions like “cancel order” or “send refund”. But then a customer asks “what’s my total spend on shipped orders this year?” and I realize I need a total_spend_by_status_and_date_range tool I didn’t build.
I could add that tool. Then add another one for “average order value by month”. Then another for “orders over $100 in Q3”. The tool list grows with every new question, each one is a round-trip, and I’m forever playing catch-up.
.
Enclave #ruby #rubydeveloper #rubyonrails #Enclave https://rubyonrails.ba/link/enclave