1 repo
Composable building blocks for constructing hierarchical AI programs and agentic workflows.
Distinguishing note: Specifically targets the modular, hierarchical object-oriented approach to building AI programs, distinct from simple API wrappers.
Explore 1 awesome GitHub repository matching artificial intelligence & ml · Agentic Orchestration Modules. Refine with filters or upvote what's useful.
DSPy is a declarative programming framework designed for building complex language model applications. It treats model interactions as modular, composable programs, allowing developers to define task logic through typed class schemas rather than relying on manually written prompts. By organizing workflows into hierarchical, reusable Python objects, the framework enables the construction of sophisticated AI systems that manage state and execution flow independently. The framework distinguishes itself through an automated optimization engine that iteratively refines prompt instructions and few-
dspy.Module(callbacks=None) Bases: BaseModule Base class for all DSPy modules (programs). A Module is a building block for DSPy programs that can contain predictors, sub-modules, and custom logic. Modules can be c