Skip to main content

Module router

Module router 

Source
Expand description

Model router for runtime.

Wraps ProviderRegistry with capability checking, retry logic, fallback strategies, and usage aggregation.

Structsยง

ModelRouter
Routes model requests (chat and embedding) across providers with capability checking, exponential-backoff retry, and fallback chains.