RoundRobinRouter

constructor(clientsPerProvider: Map<LLMProvider, List<LLMClient>>)(source)

Parameters

clientsPerProvider

Map of providers to their available clients


constructor(clients: List<LLMClient>)(source)

Creates router from a flat list of clients, grouping by provider automatically.


constructor(vararg clients: LLMClient)(source)

Creates router from vararg clients, grouping by provider automatically.


constructor(vararg llmClients: Pair<LLMProvider, LLMClient>)(source)

Creates router from provider-client pairs, grouping by provider automatically.