Skip to content
Tracon

IProviderRetryClassifier

Namespace Tracon · Assembly Tracon.Abstractions.dll

Decides whether a model-provider failure is retryable on the next fallback link.

public interface IProviderRetryClassifier

Called by FallbackChatClient, once per failed attempt, before it falls back to Tracon’s own closed-set rules. A cancellation (OperationCanceledException, anywhere in the exception graph) never reaches this classifier — that check runs before the seam and cannot be overridden.

Tracon’s taxonomy is its own opinion; a consumer may want to trust an additional SDK-specific exception. Registered with TryAddSingleton, so the consumer’s registration wins.

Classifies the failure. Return ProviderRetryDecision.Unknown to defer to Tracon’s built-in rules.

ProviderRetryDecision Classify(Exception exception)

exception Exception

The exception a model call threw.

ProviderRetryDecision

The retry decision.