using AIStudio.Chat;
using AIStudio.Chat.Compression;
using AIStudio.Models;
namespace AIStudio.AIOperations.ConversationSummary;
///
/// A conversation to summarize.
///
/// The chat to summarize. It stays unchanged, and every request for the summary demands of the provider what it demands.
/// Which messages to summarize, and which last exchange the summary leads up to, see ChatCompressionPlan.Of.
/// What the user wants the summary to pay particular attention to, or an empty string.
/// The most tokens the summary should take, see DataChatCompression.MaxSummaryTokens.
/// 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.
/// Learns which part is being summarized, or null.
public sealed record ConversationSummaryRequest(ChatThread SourceChat, ChatCompressionPlan Plan, string Focus, int MaxSummaryTokens, ContextWindow TargetWindow, IProgress? Progress);