namespace AIStudio.Assistants.ModelComparison;
///
/// Two models compared with each other, in the same order whichever of them was the first model of a comparison.
///
/// The model which comes first by ModelComparisonModelKey.CompareTo.
/// The other model.
public readonly record struct ModelComparisonPairKey(ModelComparisonModelKey First, ModelComparisonModelKey Second)
{
///
/// Gets the pair of two models.
///
/// One model.
/// The other model.
/// The pair, in its own order.
public static ModelComparisonPairKey Of(ModelComparisonModelKey one, ModelComparisonModelKey other) => one.CompareTo(other) <= 0
? new(one, other)
: new(other, one);
}