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])What the rule reports
Section titled “What the rule reports”Calls to ReActV2(...) through a module attribute or direct import in files that import dspy.
How to fix it
Section titled “How to fix it”Call dspy.ReAct(...) instead. Module-qualified calls apply automatically with xpd check --fix.
Diagnostic message
Section titled “Diagnostic message”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.