dspy-ruby

Official

Type-safe LLMs in Ruby with DSPy.rb.

AuthorEveryInc
Version1.0.0
Installs0

System Documentation

What problem does it solve?

DSPy.rb enables developers to program LLMs, not prompt them. Instead, you define application requirements through type-safe, composable modules that can be tested, optimized, and version-controlled like regular code. It provides guidance on creating type-safe signatures, building modules, configuring multiple LLM providers, and deploying robust AI features in Ruby applications.

Core Features & Use Cases

  • Type-safe Signatures: Input/output contracts with runtime type checking
  • Composable Modules: Reusable, chainable workflows for LLM tasks
  • Multiple Providers: Unified configuration for OpenAI, Anthropic, Gemini, Ollama, and OpenRouter
  • Agents with Tools & Testing: Tool-enabled agents, testing patterns with RSpec, and observability
  • Production Best Practices: Deployment patterns and observability for production AI

Quick Start

  • Install the DSPy Ruby gem and require it in your Ruby project
  • Configure a provider (e.g., OpenAI) with your API key
  • Create a simple Signature and Module, then run a basic forward call in Ruby to validate the workflow

Dependency Matrix

Required Modules

None required

Components

referencesassets

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: dspy-ruby
Download link: https://github.com/EveryInc/compound-engineering-plugin/archive/main.zip#dspy-ruby

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.