rspec-llm adds first-class RSpec support for testing Large Language Model interactions. Ships LLM-as-judge matchers, JSON Schema validation, semantic similarity matchers, a programmable fake adapter, and a thin DSL for batch evaluations. Works with the ruby_llm and langchainrb gems out of the box.

Required Ruby Version

>= 3.3.0

Authors

Sal Scotto

Versions

  1. 0.2.0
    1. source

      1. 0.2.0 source June 05, 2026 (20 KB)
  2. 0.1.0
    1. source

      1. 0.1.0 source June 04, 2026 (17.5 KB)

Pushed by

SHA 256 checksum