Skip to content

[Bug] assert_transform_module not present in dspy 2.6.0 #7805

@RahulBalan

Description

@RahulBalan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions