DSPy: The framework for programming—not prompting—language models
Python
Fix max_iters default value in docstring of ReAct (#10013)
Eliot Lacroix47b0bf2b261e
diff --git a/dspy/predict/react.py b/dspy/predict/react.pyindex b766ba2f9..bcd6b439b 100644--- a/dspy/predict/react.py+++ b/dspy/predict/react.py@@ -25,7 +25,7 @@ class ReAct(Module):Args:signature: The signature of the module, which defines the input and output of the react module.tools (list[Callable]): A list of functions, callable objects, or `dspy.Tool` instances.- max_iters (Optional[int]): The maximum number of iterations to run. Defaults to 10.+ max_iters (Optional[int]): The maximum number of iterations to run. Defaults to 20.Examples: