Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] assert_transform_module not present in dspy 2.6.0 #7805

Open
RahulBalan opened this issue Feb 13, 2025 · 2 comments
Open

[Bug] assert_transform_module not present in dspy 2.6.0 #7805

RahulBalan opened this issue Feb 13, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@RahulBalan
Copy link

What happened?

We were using dspy assertion assert_transform_module. But when we updated dspy to 2.6.0, the assertions.py is fully commented.
what is the new location?

Steps to reproduce

from dspy.primitives.assertions import assert_transform_module, backtrack_handler
ImportError: cannot import name 'assert_transform_module' from 'dspy.primitives.assertions' (/Users/rvbalan/Disk/python/cpqcodeassist/cpqcodeassist/.venv/lib/python3.12/site-packages/dspy/primitives/assertions.py)

DSPy version

2.6.0

@RahulBalan RahulBalan added the bug Something isn't working label Feb 13, 2025
@bongiovimatthew
Copy link

We are also seeing this issue, which is caused by the fact that the assertions code has been fully removed in this PR, without replacement. There are a number of questions about this on the discord server.

@okhat, is there a plan or roadmap for when we can expect assertions v2? Would it be possible to put assertions v1 back in place while v2 is finalized? Our team is now caught between versions, as there are things in 2.6.0 that we would like to leverage, but we require assertions as well.

@imJarrad
Copy link

Same here. Bit stuck until assertions v2. Keen to hear when that might be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants