Skip to main content
Watch: I Built an AI App Without Leaving Databricks

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).

Homepage - Source on GitHub - License

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.

Python

Terminal
pip install dspy

Source: github.com/stanfordnlp/dspy/blob/main/README.md

Terminal
pip install -U dspy

Source: dspy.ai

Quickstart

The first example from the official docs, unchanged. It may need an API key for the model provider it calls.

Python
haiku_signature = "subject -> haiku"
haiku_generator = dspy.Predict(haiku_signature)
result = haiku_generator(subject="computer science")
print(result.haiku)

Source: dspy.ai/current/getting-started/first-program

Features

What the DSPy docs say it supports. Not stated means the docs do not say either way.

DSPy documented features, each with its source
FeatureValueSource
MCPYesdspy.ai/current/tutorials/mcp
Multi-agentNot statedDocs do not say
Durable executionNot statedDocs do not say
Human in the loopNot statedDocs do not say
StreamingYesdspy.ai/current/tutorials/streaming
Structured outputYesdspy.ai
TracingNot statedDocs do not say
MemoryNot statedDocs do not say
EvalsYesdspy.ai/current/api/evaluation/Evaluate
Model-agnosticYesdspy.ai/current/getting-started/installation
LanguagesPythonSee sources below
LicenseMITpypi.org/project/dspy
Latest Python releasedspy 3.4.1October 12, 2026pypi.org/project/dspy/3.4.1

Compare DSPy

FAQ

Does DSPy support MCP?

Yes, per https://dspy.ai/current/tutorials/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.

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.

Newsletter

Agent frameworks, every week

One email per week. Framework releases, new agent tooling and what they mean for what you build.