haystack/releasenotes/notes/conditional-routes-validation-b46fc506d35894d4.yaml

8 lines
267 B
YAML

---
enhancements:
- |
Add output type validation in `ConditionalRouter`.
Setting `validate_output_type` to `True` will enable a check to verify if
the actual output of a route returns the declared type.
If it doesn't match a `ValueError` is raised.