mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-14 20:28:27 +00:00
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
19 lines
871 B
C#
19 lines
871 B
C#
namespace AIStudio.Assistants.ModelComparison;
|
|
|
|
/// <summary>
|
|
/// Two models compared with each other, in the same order whichever of them was the first model of a comparison.
|
|
/// </summary>
|
|
/// <param name="First">The model which comes first by ModelComparisonModelKey.CompareTo.</param>
|
|
/// <param name="Second">The other model.</param>
|
|
public readonly record struct ModelComparisonPairKey(ModelComparisonModelKey First, ModelComparisonModelKey Second)
|
|
{
|
|
/// <summary>
|
|
/// Gets the pair of two models.
|
|
/// </summary>
|
|
/// <param name="one">One model.</param>
|
|
/// <param name="other">The other model.</param>
|
|
/// <returns>The pair, in its own order.</returns>
|
|
public static ModelComparisonPairKey Of(ModelComparisonModelKey one, ModelComparisonModelKey other) => one.CompareTo(other) <= 0
|
|
? new(one, other)
|
|
: new(other, one);
|
|
} |