ProviderFallbackInfo
Notification payload emitted when a fallback chain swaps the active provider.
Defined in: src/core/types/providers.ts:674
Notification payload emitted when a fallback chain swaps the active provider.
Remarks
Delivered to callbacks registered via onFallback, and re-emitted by CompositeVoice as the 'provider.fallback' SDK event.
See
ProviderFallbackReason for the possible reasons
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
error | Error | The error that triggered the swap. | src/core/types/providers.ts:688 |
from | string | Class name of the provider that failed (e.g. 'DeepgramSTT'). | src/core/types/providers.ts:679 |
reason | ProviderFallbackReason | Why the swap happened. | src/core/types/providers.ts:685 |
role | ProviderRole | The pipeline role the swap occurred in (currently always 'stt'). | src/core/types/providers.ts:676 |
to | string | Class name of the provider now active (e.g. 'AssemblyAISTT'). | src/core/types/providers.ts:682 |