DSPy: The framework for programming—not prompting—language models
Python
minor fix
manishshettym2dc719fe1716
diff --git a/dspy/primitives/assertions.py b/dspy/primitives/assertions.pyindex 5f1376a29..103389a43 100644--- a/dspy/primitives/assertions.py+++ b/dspy/primitives/assertions.py@@ -42,7 +42,7 @@ def assert_transform(backtrack=2):for i in range(backtrack):try:return func(*args, **kwargs)- except AssertionError as e:+ except DSPyAssertionError as e:# Add metadata to statepass