Agent framework - verified
DSPy: features, install and latest version
DSPy is an AI agent framework maintained by Stanford NLP. As its docs describe it: DSPy is a Python framework for building AI systems by declaring tasks as typed signatures composed into modules, with optimizers that tune prompts and weights against a metric. It supports Python. License: MIT. Latest release: Python package dspy 3.4.1 (October 12, 2026).
- Languages
- 1
- Latest Python
- 3.4.1
- Released
- 2026-10-12
- Features documented
- 5 of 10
Install
Copied verbatim from the page linked under each command.
Quickstart
The first example from the official docs, unchanged. It may need an API key for the model provider it calls.
haiku_signature = "subject -> haiku"
haiku_generator = dspy.Predict(haiku_signature)
result = haiku_generator(subject="computer science")
print(result.haiku)Features
What the DSPy docs say it supports. Not stated means the docs do not say either way.
| Feature | Value | Source |
|---|---|---|
| MCP | Yes | dspy.ai/current/tutorials/mcp |
| Multi-agent | Not stated | Docs do not say |
| Durable execution | Not stated | Docs do not say |
| Human in the loop | Not stated | Docs do not say |
| Streaming | Yes | dspy.ai/current/tutorials/streaming |
| Structured output | Yes | dspy.ai |
| Tracing | Not stated | Docs do not say |
| Memory | Not stated | Docs do not say |
| Evals | Yes | dspy.ai/current/api/evaluation/Evaluate |
| Model-agnostic | Yes | dspy.ai/current/getting-started/installation |
| Languages | Python | See sources below |
| License | MIT | pypi.org/project/dspy |
| Latest Python release | dspy 3.4.1October 12, 2026 | pypi.org/project/dspy/3.4.1 |
Compare DSPy
FAQ
Does DSPy support MCP?
Which languages does DSPy support?
Python. Published packages: dspy (Python).
How do I install DSPy?
For Python: "pip install dspy", as shown at https://github.com/stanfordnlp/dspy/blob/main/README.md. This page lists 2 install commands, each copied from the linked source.
What is the latest version of DSPy?
As of October 18, 2026: Python package dspy 3.4.1 (October 12, 2026), https://pypi.org/project/dspy/3.4.1/.
What license is DSPy released under?
MIT. The license is at https://pypi.org/project/dspy/.
Does DSPy support durable execution?
Its official docs, read on October 18, 2026, do not say.
Does DSPy support human-in-the-loop?
Its official docs, read on October 18, 2026, do not say.
Is DSPy model-agnostic?
Yes, per https://dspy.ai/current/getting-started/installation/
Which features does DSPy document?
5 of the 10 tracked here: MCP, Streaming, Structured output, Evals and Model-agnostic. Not stated in its docs: Multi-agent, Durable execution, Human in the loop, Tracing and Memory.
Sources
Last verified from the pages below.
- GitHub README - github.com
- Official docs home - dspy.ai
- Docs: Setting up DSPy - dspy.ai
- Docs: Your first program - dspy.ai
- Docs: Debugging and Observability - dspy.ai
- PyPI dspy 3.4.1 - pypi.org
Newsletter
Agent frameworks, every week
One email per week. Framework releases, new agent tooling and what they mean for what you build.