mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-12-05 06:04:35 +00:00
Added settings for chat compression, with a model of its own (#1241)
This commit is contained in:
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);
|
||||
Reference in new issue
Block a user