DSPy: The framework for programming—not prompting—language models
Python
Fixes issue #8514: Incorrect parameters in tool_end_status_message and stream_predict initialization in tutorial example (#8515)
Nikhil Kaushal6085284458a0
diff --git a/docs/docs/tutorials/streaming/index.md b/docs/docs/tutorials/streaming/index.mdindex 44a4fbb2c..4e4655d2c 100644--- a/docs/docs/tutorials/streaming/index.md+++ b/docs/docs/tutorials/streaming/index.md@@ -329,7 +329,7 @@ class MyStatusMessageProvider(dspy.streaming.StatusMessageProvider):def tool_start_status_message(self, instance, inputs):return f"Calling Tool {instance.name} with inputs {inputs}..."- def tool_end_status_message(self, instance, outputs):+ def tool_end_status_message(self, outputs):return f"Tool finished with output: {outputs}!"@@ -341,6 +341,7 @@ stream_listeners = [stream_predict = dspy.streamify(predict,stream_listeners=stream_listeners,+ status_message_provider=MyStatusMessageProvider(),)@@ -427,4 +428,4 @@ for chunk in output:elif isinstance(chunk, dspy.Prediction):program_output = chunkprint(f"Program output: {program_output}")-```\ No newline at end of file+```