What problem does it solve?
This Skill simplifies the development of robust, type-safe Large Language Model (LLM) applications within the Ruby ecosystem, moving beyond simple prompt engineering to a more structured, software-engineering approach.
Core Features & Use Cases
- Type-Safe Signatures: Define LLM inputs and outputs using Sorbet types for compile-time and runtime safety.
- Modular Components: Build complex LLM workflows by composing reusable modules and predictors.
- Automatic Optimization: Leverage built-in optimizers like MIPROv2 and GEPA to improve prompt accuracy with data.
- Agent Development: Create sophisticated agents using ReAct and CodeAct patterns with integrated tool usage.
- Use Case: Develop a customer support chatbot that can understand user queries, classify intent, retrieve relevant information using tools, and generate a structured, type-safe response, all within a Ruby application.
Quick Start
Use the dspy-ruby skill to classify the sentiment of the provided text.