AxMultiProviderConfig
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/ai/router.ts#L51
Configuration for multi-provider routing with fallback capabilities
Properties
| Property | Type | Description |
|---|---|---|
processing | AxContentProcessingServices | Content processing services for unsupported media types |
providers | object | Provider hierarchy for routing |
providers.alternatives | AxAIService<unknown, unknown, string>[] | Alternative providers for fallback |
providers.primary | AxAIService | Primary provider to try first |
routing | object | Routing behavior configuration |
routing.capability | object | Capability matching requirements |
routing.capability.allowDegradation | boolean | Allow providers that require content processing fallbacks |
routing.capability.requireExactMatch | boolean | Only use providers with full capability support |
routing.preferenceOrder | ("quality" | "capability" | "cost" | "speed")[] | Order of preferences when selecting providers |