RubyGems Navigation menu

llm.rb 4.20.2

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. 11.3.1 June 21, 2026 (169 KB)
  2. 11.3.0 June 14, 2026 (165 KB)
  3. 11.2.0 June 04, 2026 (164 KB)
  4. 11.1.0 May 29, 2026 (160 KB)
  5. 11.0.0 May 23, 2026 (158 KB)
  6. 4.20.2 April 18, 2026 (114 KB)
Show all versions (88 total)

Development Dependencies (13):

dotenv ~> 2.8
kramdown ~> 2.4
logger ~> 1.7
rake ~> 13.0
rspec ~> 3.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 91,517

For this version 222

Version Released:

License:

0BSD

Required Ruby Version: >= 3.2.0

Links: