---
title: "dspy 3.0.0 Breaking Changes on PyPI | Since.dev"
description: "What each dspy release removed, renamed or changed: 132 breaking changes in 5 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/dspy
last_updated: 2026-12-04
---

# dspy breaking changes

dspy 3.0.0 (August 12, 2025) is its newest release with breaking changes, 123 of them. The first: dspy 3.0.0 drops support for Python 3.9 and requires Python 3.10 or later. Every breaking API change we have recorded in dspy on PyPI: 132 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `3.5.0`, released November 10, 2026. [Source repository](https://github.com/stanfordnlp/dspy)

Its 3.0.0 release requires [Python 3.10](https://since.dev/calendar/python/3.10.md) or later. [Python end of life dates](https://since.dev/calendar/python.md).

- From [3.0.0b1](#v-3-0-0b1) to [3.0.0](#v-3-0-0): 131 breaking changes in 4 versions.

## dspy 3.0.0 breaking changes

dspy 3.0.0, released August 12, 2025: 123 breaking changes.

- **Removed**  

Python 3.9 is no longer supported; 3.10 through 3.13 are supported. [github.com](https://github.com/stanfordnlp/dspy/releases/tag/3.0.0)
- **Removed** `dspy.adapters.chat_adapter.BaseCallback`  

dspy.adapters.chat_adapter.BaseCallback was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.assertions`  

dspy.assertions was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.ChainOfThoughtWithHint`  

dspy.ChainOfThoughtWithHint was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.dsp.utils.Counter`  

dspy.dsp.utils.Counter was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.dsp.utils.EM`  

dspy.dsp.utils.EM was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.dsp.utils.em_score`  

dspy.dsp.utils.em_score was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.dsp.utils.F1`  

dspy.dsp.utils.F1 was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.dsp.utils.f1_score`  

dspy.dsp.utils.f1_score was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.dsp.utils.hotpot_f1_score`  

dspy.dsp.utils.hotpot_f1_score was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.dsp.utils.HotPotF1`  

dspy.dsp.utils.HotPotF1 was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.dsp.utils.metrics`  

dspy.dsp.utils.metrics was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.dsp.utils.normalize_text`  

dspy.dsp.utils.normalize_text was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.dsp.utils.precision_score`  

dspy.dsp.utils.precision_score was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.dsp.utils.re`  

dspy.dsp.utils.re was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.dsp.utils.settings.ThreadLocalOverrides`  

dspy.dsp.utils.settings.ThreadLocalOverrides was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.dsp.utils.string`  

dspy.dsp.utils.string was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.dsp.utils.ThreadLocalOverrides`  

dspy.dsp.utils.ThreadLocalOverrides was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.dspy`  

dspy.dspy was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.evaluate.evaluate.Evaluate.return_all_scores`  

Evaluate.return_all_scores was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.evaluate.evaluate.Evaluate.return_outputs`  

Evaluate.return_outputs was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.Evaluate.return_all_scores`  

Evaluate.return_all_scores was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.Evaluate.return_outputs`  

Evaluate.return_outputs was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.experimental`  

dspy.experimental was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.predict.avatar.Optional`  

dspy.predict.avatar.Optional was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.predict.chain_of_thought_with_hint`  

dspy.predict.chain_of_thought_with_hint was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.primitives.assertions`  

dspy.primitives.assertions was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.primitives.module.get_dependency_versions`  

dspy.primitives.module.get_dependency_versions was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.primitives.module.postprocess_parameter_name`  

dspy.primitives.module.postprocess_parameter_name was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.primitives.program`  

dspy.primitives.program was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.Program`  

The dspy.Program alias was removed; code using it must change. [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.retrieve`  

dspy.retrieve was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.streaming.streaming_listener.StreamListener.chat_adapter_end_identifier`  

StreamListener.chat_adapter_end_identifier was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.streaming.streaming_listener.StreamListener.chat_adapter_start_identifier`  

StreamListener.chat_adapter_start_identifier was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.streaming.streaming_listener.StreamListener.json_adapter_end_identifier`  

StreamListener.json_adapter_end_identifier was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.streaming.streaming_listener.StreamListener.json_adapter_start_identifier`  

StreamListener.json_adapter_start_identifier was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.streaming.StreamListener.chat_adapter_end_identifier`  

StreamListener.chat_adapter_end_identifier was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.streaming.StreamListener.chat_adapter_start_identifier`  

StreamListener.chat_adapter_start_identifier was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.streaming.StreamListener.json_adapter_end_identifier`  

StreamListener.json_adapter_end_identifier was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Removed** `dspy.streaming.StreamListener.json_adapter_start_identifier`  

StreamListener.json_adapter_start_identifier was removed in dspy 3.0.0 [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Renamed** `dspy.BaseLM.update_global_history`  

Use BaseLM.update_history instead. [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Renamed** `dspy.dsp.utils.metrics.print_message`  

Use dspy.evaluate.metrics.print_message instead. [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Renamed** `dspy.predict.chain_of_thought.OutputField`  

Use dspy.evaluate.auto_evaluation.OutputField instead. [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Renamed** `dspy.primitives.program.BaseModule`  

Use dspy.primitives.base_module.BaseModule instead. [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Renamed** `dspy.primitives.program.Parallel`  

Use dspy.primitives.module.Parallel instead. [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Renamed** `dspy.primitives.program.pretty_print_history`  

Use dspy.primitives.module.pretty_print_history instead. [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Renamed** `dspy.primitives.program.ProgramMeta`  

Use dspy.primitives.module.ProgramMeta instead. [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Renamed** `dspy.primitives.program.set_attribute_by_name`  

Use dspy.primitives.module.set_attribute_by_name instead. [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Renamed** `dspy.retrieve.databricks_rm.DatabricksRM`  

Use dspy.retrievers.databricks_rm.DatabricksRM instead. [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Renamed** `dspy.retrieve.databricks_rm.Document`  

Use dspy.retrievers.databricks_rm.Document instead. [pypi.org](https://pypi.org/project/dspy/3.0.0/)

And 73 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## dspy 3.0.0b4 breaking changes

dspy 3.0.0b4, released August 12, 2025: 2 breaking changes.

- **Behavior changed**  

Saved modules no longer store history and callbacks; code relying on them in saved files may change. [github.com](https://github.com/stanfordnlp/dspy/releases/tag/3.0.0b4)
- **Behavior changed** `MiproV2`  

MiproV2 no longer asks for user confirmation before running. [github.com](https://github.com/stanfordnlp/dspy/releases/tag/3.0.0b4)

## dspy 3.0.0b3 breaking changes

dspy 3.0.0b3, released August 12, 2025: 2 breaking changes.

- **Renamed** `dspy.BaseType`  

dspy.BaseType was renamed to dspy.Type; update references. [pypi.org](https://pypi.org/project/dspy/3.0.0/)
- **Behavior changed** `datasets`  

datasets was re-added as a default dependency after being removed in 3.0.0b1. [github.com](https://github.com/stanfordnlp/dspy/releases/tag/3.0.0b3)

## dspy 3.0.0b2 breaking changes

dspy 3.0.0b2, released August 12, 2025: 4 breaking changes.

- **Removed**  

Python 3.9 is no longer supported; users on it must upgrade Python. [github.com](https://github.com/stanfordnlp/dspy/releases/tag/3.0.0b2)
- **Removed** `dspy.Assertion`  

Settings related to dspy.Assertion were removed. [github.com](https://github.com/stanfordnlp/dspy/releases/tag/3.0.0b2)
- **Removed** `dspy.modules`  

The modules name was renamed to module; imports must be updated. [github.com](https://github.com/stanfordnlp/dspy/releases/tag/3.0.0b2)
- **Removed** `dspy.predict.parameter.Hyperparameter`  

The Hyperparameter class was removed. [pypi.org](https://pypi.org/project/dspy/3.0.0/)

## dspy 3.0.0b1 breaking changes

dspy 3.0.0b1, released August 12, 2025: 1 breaking change.

- **Removed**  

Unmaintained retriever integrations were removed; users who relied on them must migrate to custom code. [github.com](https://github.com/stanfordnlp/dspy/releases/tag/3.0.0b1)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
