We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c435a3f commit 7acf4c8Copy full SHA for 7acf4c8
tests/predict/test_react.py
@@ -154,3 +154,16 @@ def test_custom_tools():
154
"Thought 3: Even more thoughts\n\n"
155
"Action 3: Finish[baz]"
156
)
157
+
158
159
+def test_signature_instructions():
160
+ class ExampleSignature(dspy.Signature):
161
+ """You are going to generate output based on input."""
162
163
+ input = dspy.InputField()
164
+ output = dspy.OutputField()
165
166
+ react = dspy.ReAct(ExampleSignature)
167
168
+ assert react.react[0].signature.instructions is not None
169
+ assert react.react[0].signature.instructions.startswith("You are going to generate output based on input.")
0 commit comments