DSPy: The framework for programming—not prompting—language models
Python
Add the __doc__ of Signature class to system message for the react (#1840)
Meng Yan85414e015058
diff --git a/dspy/predict/react.py b/dspy/predict/react.pyindex 28640d5d1..f11446018 100644--- a/dspy/predict/react.py+++ b/dspy/predict/react.py@@ -64,7 +64,7 @@ class ReAct(Module):)fallback_signature = (- dspy.Signature({**signature.input_fields, **signature.output_fields})+ dspy.Signature({**signature.input_fields, **signature.output_fields}, signature.instructions).append("trajectory", dspy.InputField(), type_=str))