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>
18 lines
785 B
C#
18 lines
785 B
C#
using AIStudio.Chat;
|
|
using AIStudio.Chat.Embedded;
|
|
|
|
namespace AIStudio.Assistants.ModelComparison;
|
|
|
|
/// <summary>
|
|
/// Lets the embedded chats of a comparison series live in the folder of the series.
|
|
/// </summary>
|
|
/// <param name="store">The store of the assistant.</param>
|
|
/// <param name="seriesId">The ID of the series.</param>
|
|
public sealed class ModelComparisonSeriesChatStore(ModelComparisonStore store, Guid seriesId) : IEmbeddedChatStore
|
|
{
|
|
/// <inheritdoc />
|
|
public Task<ChatThread?> LoadThreadAsync(Guid chatId, CancellationToken token = default) => store.LoadSeriesChatAsync(seriesId, chatId, token);
|
|
|
|
/// <inheritdoc />
|
|
public Task SaveThreadAsync(ChatThread thread, CancellationToken token = default) => store.SaveSeriesChatAsync(seriesId, thread, token);
|
|
} |