DSPy v3.0.0b3
DSPy releases v3.0.0b3, restoring the datasets dependency to fix silent MIPROv2 optimization failures and adding dspy.Code, token streaming for XMLAdapter, and various type system improvements.
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…
- github.comdspy 3.0.0b3primary