AgentPrismProviderUnavailableException
AgentPrism.Abstractions.dllThrown when the circuit breaker has temporarily taken a model provider out of service.
public sealed class AgentPrismProviderUnavailableException : AgentPrismException, ISerializableInheritance
Section titled “Inheritance”object ← Exception ← AgentPrismException ← AgentPrismProviderUnavailableException
Implements
Section titled “Implements”Inherited Members
Section titled “Inherited Members”AgentPrismException.ErrorType, Exception.GetBaseException(), Exception.ToString(), Exception.GetType(), Exception.TargetSite, Exception.Message, Exception.Data, Exception.InnerException, Exception.HelpLink, Exception.Source, Exception.HResult, Exception.StackTrace, object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”Thrown while the circuit is Open; no request reaches the
provider. The circuit opens once consecutive failures pass
FailureThreshold, and moves to half-open for a single trial after
BreakDuration.
Constructors
Section titled “Constructors”AgentPrismProviderUnavailableException()
Section titled “ AgentPrismProviderUnavailableException()”Creates a new error.
public AgentPrismProviderUnavailableException()AgentPrismProviderUnavailableException(string)
Section titled “ AgentPrismProviderUnavailableException(string)”Creates a new error.
public AgentPrismProviderUnavailableException(string message)Parameters
Section titled “Parameters”message string
The error message.
AgentPrismProviderUnavailableException(string, Exception)
Section titled “ AgentPrismProviderUnavailableException(string, Exception)”Creates a new error.
public AgentPrismProviderUnavailableException(string message, Exception innerException)Parameters
Section titled “Parameters”message string
The error message.
innerException Exception
The underlying error.
Fields
Section titled “Fields”ProviderUnavailableErrorType
Section titled “ ProviderUnavailableErrorType”The stable value written to AgentPrismException.ErrorType.
public const string ProviderUnavailableErrorType = "provider_unavailable"Field Value
Section titled “Field Value”Properties
Section titled “Properties”ErrorType
Section titled “ ErrorType”Gets the stable error type name written to the run record.
public override string ErrorType { get; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”Defaults to the full name of the exception type, so today’s behaviour does
not change. A derived type overrides this member when the record has to be
machine readable — for example AgentPrismContentFilteredException
writes content_filtered. Reports and alert rules can rely on this
stable name instead of an assembly name.
The value is written to RunError.Type and carries no secret.
ProviderName
Section titled “ ProviderName”Gets the name of the provider whose circuit is open.
public string? ProviderName { get; init; }Property Value
Section titled “Property Value”RetryAfter
Section titled “ RetryAfter”Gets the time at which the circuit goes half-open and is retried.
public DateTimeOffset? RetryAfter { get; init; }