RubyGems Navigation menu

llm.rb 4.16.1

llm.rb is a runtime for building AI systems that integrate directly with your application. It is not just an API wrapper. It provides a unified execution model for providers, tools, MCP servers, streaming, schemas, files, and state. It is built for engineers who want control over how these systems run. llm.rb stays close to Ruby, runs on the standard library by default, loads optional pieces only when needed, and remains easy to extend. It also works well in Rails or ActiveRecord applications, where a small wrapper around context persistence is enough to save and restore long-lived conversation state across requests, jobs, or retries. Most LLM libraries stop at request/response APIs. Building real systems means stitching together streaming, tools, state, persistence, and external services by hand. llm.rb provides a single execution model for all of these, so they compose naturally instead of becoming separate subsystems.

Gemfile:
=

install:
=

Versions:

  1. 12.0.0 June 30, 2026 (180 KB)
  2. 11.3.1 June 21, 2026 (169 KB)
  3. 11.3.0 June 14, 2026 (165 KB)
  4. 11.2.0 June 04, 2026 (164 KB)
  5. 11.1.0 May 29, 2026 (160 KB)
  6. 4.16.1 April 16, 2026 (106 KB)
Show all versions (89 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 92,062

For this version 194

Version Released:

License:

0BSD

Required Ruby Version: >= 3.2.0

Links: