Added Model Comparison assistant

This commit is contained in:
Dominic Neuburg committed 2026-09-26 21:01:36 +02:00
1 parent 1379ff6aab
commit 80669f98b3
38 files changed
+4272 -1

No files matched your search

@@ -0,0 +1,22 @@
namespace AIStudio.Assistants.ModelComparison;
/// <summary>
/// One of the two models in a comparison, and the way to ask it.
/// </summary>
/// <remarks>
/// The way to ask is a function rather than a provider, so the comparison itself does not depend on
/// anything of the app. <see cref="ModelComparisonProviderAdapter"/> builds the function for a real
/// provider.
/// </remarks>
public sealed record ModelComparisonParticipant
{
/// <summary>
/// The name to show for the model. It is copied into the answer, see <see cref="ModelComparisonAnswer.Label"/>.
/// </summary>
public required string Label { get; init; }
/// <summary>
/// Sends a prompt to the model and streams the answer back, chunk by chunk.
/// </summary>
public required Func<string, CancellationToken, IAsyncEnumerable<string>> Ask { get; init; }
}