You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: