Skip to content

dspy/deprecated-react-v2

Pack Severity Fix Versions
DSPy warning safe, with xpd check --fix All versions

dspy.ReActV2 is a deprecated compatibility alias for dspy.ReAct in DSPy 3.5 and is scheduled for removal in DSPy 3.6.

agent = dspy.ReActV2("question -> answer", tools=[search])
agent = dspy.ReAct("question -> answer", tools=[search])

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

Call dspy.ReAct(...) instead. Module-qualified calls apply automatically with xpd check --fix.

dspy.ReActV2 is deprecated in DSPy 3.5 and will be removed in 3.6. Replace it with dspy.ReAct.

See all rules in the DSPy pack.