Skip to content

Commit

Permalink
Fix tool example
Browse files Browse the repository at this point in the history
  • Loading branch information
YoanSallami committed Jun 11, 2024
1 parent 3440bec commit c85a0ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/tools/custom-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class GreetTool(BaseTool):
# Some parsing to clean up the prediction
pred.name = self.prediction_parser.parse(pred.name, prefix = "Name:", stop = ["\n"])
# Then we can call our python function
message = self.greet(pred.name)
message = greet(pred.name)
# The tool always returns a dspy.Prediction with the tools's input and output to give to the system the
# possibility to enhance its reasoning by calling a tool multiple times.
return dspy.Prediction(
Expand Down

0 comments on commit c85a0ad

Please sign in to comment.