haystack/releasenotes/notes/deprecate-greedy-argument-4b8c39572f5df25c.yaml
Silvano Cerza 0df379e6a2
feat: Deprecate @component decorator is_greedy argument (#8400)
* Deprecate @component decorator is_greedy argument

* Fix some typos and docstrings

* Add _is_lazy_variadic test
2024-09-25 11:28:30 +02:00

14 lines
693 B
YAML

---
enhancements:
- |
Add new `GreedyVariadic` input type. This has a similar behaviour to `Variadic` input type
as it can be connected to multiple output sockets, though the Pipeline will run it as soon
as it receives an input without waiting for others.
This replaces the `is_greedy` argument in the `@component` decorator.
If you had a Component with a `Variadic` input type and `@component(is_greedy=True)` you need
to change the type to `GreedyVariadic` and remove `is_greedy=true` from `@component`.
deprecations:
- |
`@component` decorator `is_greedy` argument is deprecated and will be removed in version `2.7.0`.
Use `GreedyVariadic` type instead.