MultiLLMPromptExecutor
MultiLLMPromptExecutor is a class responsible for executing prompts across multiple Large Language Models (LLMs). This implementation supports direct execution with specific LLM clients or utilizes a fallback strategy if no primary LLM client is available for the requested provider.
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.
Constructors
Initializes a new instance of the MultiLLMPromptExecutor
class with multiple LLM clients.
Constructs an executor instance with a map of LLM providers associated with their respective clients.
Types
Represents configuration for a fallback large language model (LLM) execution strategy.
Functions
Executes a given prompt using the specified tools and model, and returns a list of response messages.
Executes the given prompt with the specified model and streams the response in chunks as a flow.