haystack/releasenotes/notes/components-reuse-ccc5f2d4b9d7f9ff.yaml
Silvano Cerza 76d324a149
feat: Change Pipeline.add_component to fail when reusing Component instances (#6847)
* Change Pipeline.add_component to fail when reusing Component instances

* Change variable name and store Pipeline instance in it

* Fix tests
2024-01-30 11:15:26 +01:00

5 lines
144 B
YAML

---
enhancements:
- |
Change `Pipeline.add_component()` to fail if the `Component` instance has already been added in another `Pipeline`.