vicentereig / dspy.rb
The Ruby framework for programming—rather than prompting—language models.
Why this job: works in the areas we cover, but does not say which job it does
What it does
DSPy.rb brings DSPy's signature, module, agent, and optimizer model to Ruby, with Sorbet types and Ruby-native integrations. A signature declares a task as typed inputs and outputs. A module chooses how to execute it. Ruby composes modules into programs, while ReAct adds a bounded loop when the model should choose the next action. DSPy.rb builds the provider request and validates the returned shape.
Get started
No single install command. Read the steps in the README (opens in new tab)
- Maintenance
- Active
- Last commit yesterday
- Stars
- 241
- +1 this week
- Licence
- Custom
- Read before business use
- Downloads for
- None listed
- No release files
- Latest version
- v1.0.2
- Released 3 months ago
- Built with
- Ruby
- 100% of the code
Is it looked after?
- Contributors
- 2
- Last 90 days
- Issues
- 99% closed
- 1 still open
- Pull requests
- 95 merged
- 0 waiting
- Releases
- 81
- 15 in the last year
- Contributing guide (opens in new tab)
- No security policy
- No code of conduct
Similar repos
| Repo | Stars | Last commit | Licence | Downloads for |
|---|---|---|---|---|
| patterns-ai-core / langchainrb | 2,008 | 22 days ago | MIT | No downloads |
| ankane / eps | 693 | 26 days ago | MIT | No downloads |
| steveclarke / real-world-rails | 544 | 2 days ago | MIT | No downloads |
More: languages, topics and project record
Languages
- Ruby 100%
Topics
- ai
- dspy
- llm
- rails
- ruby
- agentic-ai
- agents
- machine-learning
- rubyml
- ruby-ai
- sorbet
- ruby-llm
Project record
- JobOther AI tools
- StatusListed
- Commits1,235
- Forks24
- Watching3
- Stars in 28 days+4
- CreatedMar 15, 2025
- First seen by usNov 7, 2026
- CheckedNov 12, 2026
