Skip to content

dspy/deprecated-two-step-adapter

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

dspy.TwoStepAdapter is deprecated in DSPy 3.5 and will be removed in DSPy 3.6.

adapter = dspy.TwoStepAdapter(extraction_lm)
adapter = dspy.JSONAdapter()

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

Use dspy.JSONAdapter() for models that support structured outputs, or dspy.XMLAdapter() for models that do not.

dspy.TwoStepAdapter is deprecated in DSPy 3.5 and will be removed in 3.6. Use dspy.JSONAdapter() for structured outputs or dspy.XMLAdapter() otherwise.

See all rules in the DSPy pack.