AxMultiProviderConfig
Defined in: https://github.com/ax-llm/ax/blob/9a5a7060a48f9eef46efc680b0cdf6b42bff5df2/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 |