RubyGems Navigation menu

llm.rb 4.22.0

llm.rb is a lightweight runtime for building capable AI systems in Ruby. It is not just an API wrapper. llm.rb gives you one runtime for providers, contexts, agents, tools, MCP servers, streaming, schemas, files, and persisted state, so real systems can be built out of one coherent execution model instead of a pile of adapters. It stays close to Ruby, runs on the standard library by default, loads optional pieces only when needed, includes built-in ActiveRecord support through acts_as_llm and acts_as_agent, includes built-in Sequel support through plugin :llm, and is designed for engineers who want control over long-lived, tool-capable, stateful AI workflows instead of just request/response helpers.

Gemfile:
=

install:
=

Versions:

  1. 5.3.0 April 26, 2026 (128 KB)
  2. 5.2.1 April 25, 2026 (127 KB)
  3. 5.2.0 April 25, 2026 (126 KB)
  4. 5.1.0 April 24, 2026 (125 KB)
  5. 5.0.0 April 24, 2026 (125 KB)
  6. 4.22.0 April 22, 2026 (119 KB)
Show all versions (75 total)

Development Dependencies (16):

activerecord ~> 8.0
dotenv ~> 2.8
kramdown ~> 2.4
logger ~> 1.7
rake ~> 13.0
rspec ~> 3.0
sequel ~> 5.0
sqlite3 ~> 2.0
standard ~> 1.50
test-cmd.rb ~> 0.12.0
vcr ~> 6.0
webmock ~> 3.24.0
webrick ~> 1.8
yard ~> 0.9.37

Owners:

Pushed by:

Authors:

  • Antar Azri, 0x1eef, Christos Maris, Rodrigo Serrano

SHA 256 checksum:

=

Total downloads 77,735

For this version 170

Version Released:

License:

0BSD

Required Ruby Version: >= 3.2.0

Links: