Skip to content

dspy/deprecated-signature-optimizer

Pack Severity Fix Versions
DSPy warning none, edit by hand All versions

dspy.SignatureOptimizer is deprecated in DSPy and prints a removal warning on construction.

optimizer = dspy.SignatureOptimizer(metric=exact_match)
optimizer = dspy.COPRO(metric=exact_match)

Calls to SignatureOptimizer(...) through a module attribute or direct import in files that import dspy.

Replace SignatureOptimizer with dspy.COPRO (or dspy.MIPROv2 / dspy.GEPA for newer prompt optimization workflows).

SignatureOptimizer is deprecated in DSPy and will be removed in a future release. Use dspy.COPRO instead.

See all rules in the DSPy pack.