Added settings for chat compression, with a model of its own (#1241)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-27 16:35:51 +01:00
1 parent 899139c88b
commit 1fbc1f4796
71 files changed
+3023 -797

No files matched your search

@@ -0,0 +1,16 @@
using AIStudio.Chat;
using AIStudio.Chat.Compression;
using AIStudio.Models;
namespace AIStudio.AIOperations.ConversationSummary;
/// <summary>
/// A conversation to summarize.
/// </summary>
/// <param name="SourceChat">The chat to summarize. It stays unchanged, and every request for the summary demands of the provider what it demands.</param>
/// <param name="Plan">Which messages to summarize, and which last exchange the summary leads up to, see ChatCompressionPlan.Of.</param>
/// <param name="Focus">What the user wants the summary to pay particular attention to, or an empty string.</param>
/// <param name="MaxSummaryTokens">The most tokens the summary should take, see DataChatCompression.MaxSummaryTokens.</param>
/// <param name="TargetWindow">The context window of the model which continues with the summary, e.g., the model of the chat; ContextWindow.UNKNOWN when it is not known. The summary has to fit into it as well.</param>
/// <param name="Progress">Learns which part is being summarized, or null.</param>
public sealed record ConversationSummaryRequest(ChatThread SourceChat, ChatCompressionPlan Plan, string Focus, int MaxSummaryTokens, ContextWindow TargetWindow, IProgress<ConversationSummaryProgress>? Progress);