DSPy
Python framework for composing language-model tasks with typed signatures, reusable modules and metric-driven optimization.
About this listing
DSPy helps developers express language-model tasks as structured inputs and outputs instead of maintaining a separate hand-written prompt for each step. Its modules let the same task use direct prediction, chain-of-thought reasoning or a tool-using ReAct loop.
Developers can compose these modules in Python and use examples plus a scoring function to optimize a program. This makes it useful for extraction, retrieval-augmented workflows and agents whose behavior needs to be evaluated systematically. The framework code is MIT-licensed and free; separately chosen models, API usage and hosting can incur charges. This listing covers the framework, not a hosted model service.