MultiLLMPromptExecutor
Initializes a new instance of the MultiLLMPromptExecutor class with multiple LLM clients.
Allows specifying a variable number of client-provider pairs, where each pair links a specific LLMProvider with a corresponding implementation of LLMClient. All provided pairs are internally converted into a map for efficient access and management of clients by their associated providers.
Parameters
Variable number of pairs, where each pair consists of an LLMProvider representing the provider and a LLMClient for communication with that provider.
Secondary constructor for MultiLLMPromptExecutor that accepts a variable number of LLMClient instances. The provided clients are processed to create a mapping of LLMProvider to their respective LLMClient.
Parameters
Vararg parameter of LLMClient instances used to construct the executor.
Constructs an executor instance with a map of LLM providers associated with their respective clients.
Parameters
A map containing LLM providers associated with their respective LLMClients.
Optional settings to configure the fallback mechanism in case a specific provider is not directly available.