Written for the oxide Rust rewrite. Self-contained -- no DSPy source access required.
DSPy is a framework for programming with language models where you declare what you want (via typed signatures), not how to prompt. The framework handles prompt construction, output parsing, and -- critically -- automatic optimization of prompts and few-shot examples. The module system is the backbone that makes all of this possible.