Download Latest Version 3.0.0b3 source code.tar.gz (14.9 MB)
Email in envelope

Get an email when there's a new version of DSPy

Home / 3.0.0b3
Name Modified Size InfoDownloads / Week
Parent folder
3.0.0b3 source code.tar.gz 2025-07-19 14.9 MB
3.0.0b3 source code.zip 2025-07-19 15.1 MB
README.md 2025-07-19 3.2 kB
Totals: 3 Items   30.0 MB 3

What's Changed

Key bugfix: The removal of datasets from the default dependencies in 3.0.0b1 meant that if the user didn't have datasets installed, the bootstrapping of MIPROv2 would fail silently, leading to worse optimization. Added datasets back in commit 8aa065945.

Signatures, Adapters, & Types * add dspy.Code by @chenmoneygithub in https://github.com/stanfordnlp/dspy/pull/8511 * Provide language to dspy.Code by @chenmoneygithub in https://github.com/stanfordnlp/dspy/pull/8519 * Use collections for type hints by @TomeHirata in https://github.com/stanfordnlp/dspy/pull/8513 * Add testing for PEP604 union types by @erandeutsch in https://github.com/stanfordnlp/dspy/pull/8475 * Fix type annotation for ensure_signature by @grisaitis in https://github.com/stanfordnlp/dspy/pull/8496 * Use model_dump instead of dict by @TomeHirata in https://github.com/stanfordnlp/dspy/pull/8493 * Fix native function calling in adapters by @chenmoneygithub in https://github.com/stanfordnlp/dspy/pull/8479 * Rename dspy.BaseType to dspy.Type by @chenmoneygithub in https://github.com/stanfordnlp/dspy/pull/8510 * Resolve "$def" for nested tool arg type by @chenmoneygithub in https://github.com/stanfordnlp/dspy/pull/8534 * Add token streaming support for XMLAdapter by @chenmoneygithub in https://github.com/stanfordnlp/dspy/pull/8478

Modules * Update python_interpreter.py by @nillwyc in https://github.com/stanfordnlp/dspy/pull/8501 * unwrap pyodide object correctly by @arnavsinghvi11 in https://github.com/stanfordnlp/dspy/pull/8466 * Provide a dspy.syncify so that users can run optimizer on async dspy programs by @chenmoneygithub in https://github.com/stanfordnlp/dspy/pull/8509 * fix UnicodeDecodeError: 'gbk' codec can't decode by @nillwyc in https://github.com/stanfordnlp/dspy/pull/8522

Other * Support MIPROv2 user confirmation in windows by @TomeHirata in https://github.com/stanfordnlp/dspy/pull/8485 * Run unit tests with real LLM calls by @TomeHirata in https://github.com/stanfordnlp/dspy/pull/8486

New Contributors

Full Changelog: https://github.com/stanfordnlp/dspy/compare/3.0.0b2...3.0.0b3

Source: README.md, updated 2025-07-19