Update `HaystackLLMWrapper` to support New Chat Generator Components
Describe the Feature
Update HaystackLLMWrapper to support new Haystack chat generator components. Currently only the legacy generator type components are supported in HaystackLLMWrapper and validated meaning that the newer components cannot be used even if they would work.
Why is the feature important for you?
Newer Haystack chat generator components such as OpenAIChatGenerator and OpenAIResponsesGenerator support async coroutines, newer APIs (such as the responses API) and tool calling. It would also allow the use of the same components in the Ragas evaluation pipeline as in a regular pipeline, as you currently have to use the legacy generator components in the Ragas evaluator even if you use the newer components in your regular Haystack pipeline.
Additional context
- https://docs.haystack.deepset.ai/docs/openairesponseschatgenerator
I'd like to work on this. I'll open a PR shortly.
Opened https://github.com/vibrantlabsai/ragas/pull/2799 for this.
Closed as ragas-haystack integration no longer uses HaystackLLMWrapper.