Skip to content

Commit 0c7395e

Browse files
committed
slight docs fix
1 parent e05f6f9 commit 0c7395e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/docs/learn/programming/signatures.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@ You can also add instructions to your inline signature, which can use variables
3636

3737
```python
3838
toxicity = dspy.Predict(
39-
'comment -> toxic: bool',
40-
instructions="Mark as 'toxic' if the comment includes insults, harassment, or sarcastic derogatory remarks.")
39+
dspy.Signature(
40+
"comment -> toxic: bool",
41+
instructions="Mark as 'toxic' if the comment includes insults, harassment, or sarcastic derogatory remarks.",
42+
)
43+
)
4144
```
4245

4346
### Example A: Sentiment Classification

0 commit comments

Comments
 (0)