Skip to content
Tracon

DefaultProviderRetryClassifier

Namespace Tracon · Assembly Tracon.Core.dll

Tracon’s built-in provider retry classifier — the same closed-set rules Tracon.FallbackRetryClassifier has always applied.

public sealed class DefaultProviderRetryClassifier : IProviderRetryClassifier

objectDefaultProviderRetryClassifier

IProviderRetryClassifier

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Registered with TryAddSingleton as the default IProviderRetryClassifier: a consumer that registers nothing gets exactly this, so FallbackChatClient’s retry decisions stay bit-for-bit identical to before the seam existed. Never returns ProviderRetryDecision.Unknown — it is the rule the seam falls back to, not a participant deferring to it.

public DefaultProviderRetryClassifier()

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

public ProviderRetryDecision Classify(Exception exception)

exception Exception

The exception a model call threw.

ProviderRetryDecision

The retry decision.