diff --git a/haystack/core/pipeline/pipeline.py b/haystack/core/pipeline/pipeline.py index 0ee88c9b1..fc0d36f1e 100644 --- a/haystack/core/pipeline/pipeline.py +++ b/haystack/core/pipeline/pipeline.py @@ -48,14 +48,14 @@ class Pipeline(PipelineBase): "haystack.component.input_types": {k: type(v).__name__ for k, v in inputs.items()}, "haystack.component.input_spec": { key: { - "type": value.type.__name__ if isinstance(value.type, type) else str(value.type), + "type": (value.type.__name__ if isinstance(value.type, type) else str(value.type)), "senders": value.senders, } for key, value in instance.__haystack_input__._sockets_dict.items() # type: ignore }, "haystack.component.output_spec": { key: { - "type": value.type.__name__ if isinstance(value.type, type) else str(value.type), + "type": (value.type.__name__ if isinstance(value.type, type) else str(value.type)), "receivers": value.receivers, } for key, value in instance.__haystack_output__._sockets_dict.items() # type: ignore @@ -155,6 +155,8 @@ class Pipeline(PipelineBase): The pipeline resolves inputs to the correct components, returning {'hello2': {'output': 'Hello, Hello, world!!'}}. """ + warn("The 'debug' parameter is deprecated and will be removed in Haystack 2.5.0.", DeprecationWarning) + pipeline_running(self) # Reset the visits count for each component diff --git a/releasenotes/notes/deprecate-pipeline-run-debug-param-e69190338a8e041b.yaml b/releasenotes/notes/deprecate-pipeline-run-debug-param-e69190338a8e041b.yaml new file mode 100644 index 000000000..c6a72b872 --- /dev/null +++ b/releasenotes/notes/deprecate-pipeline-run-debug-param-e69190338a8e041b.yaml @@ -0,0 +1,4 @@ +--- +deprecations: + - | + Deprecate the unused `debug` parameter in the `Pipeline.run` method.