ModelFallback
Namespace AgentPrism · Assembly
AgentPrism.Abstractions.dllOne link of a ModelBinding.Fallbacks chain.
public sealed record ModelFallback : IEquatable<ModelFallback>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”Deliberately narrow: only the provider and the model name, not a full ModelBinding. A fallback binding embedding another fallback chain would produce a recursive type that is hard to validate and to reason about; the fallback call uses the fallback model’s own defaults for every other setting.
Constructors
Section titled “Constructors”ModelFallback()
Section titled “ ModelFallback()”public ModelFallback()Properties
Section titled “Properties”Gets the model name, for example claude-opus-5.
public required string Model { get; init; }Property Value
Section titled “Property Value”Provider
Section titled “ Provider”Gets the provider name, for example anthropic.
public required string Provider { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(ModelFallback?)
Section titled “ Equals(ModelFallback?)”public bool Equals(ModelFallback? other)Parameters
Section titled “Parameters”other ModelFallback?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(ModelFallback?, ModelFallback?)
Section titled “ operator ==(ModelFallback?, ModelFallback?)”public static bool operator ==(ModelFallback? left, ModelFallback? right)Parameters
Section titled “Parameters”left ModelFallback?
right ModelFallback?
Returns
Section titled “Returns”operator !=(ModelFallback?, ModelFallback?)
Section titled “ operator !=(ModelFallback?, ModelFallback?)”public static bool operator !=(ModelFallback? left, ModelFallback? right)Parameters
Section titled “Parameters”left ModelFallback?
right ModelFallback?