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,14 @@
namespace AIStudio.AIOperations.ConversationSummary;
/// <summary>
/// The summary the AI wrote of a chat, or why there is none.
/// </summary>
/// <param name="Success">Whether there is a summary.</param>
/// <param name="Summary">The summary, as the AI wrote it. Not filtered for prompt injections yet.</param>
/// <param name="Issue">Why there is no summary, for the user. Empty on success.</param>
public sealed record ConversationSummaryResult(bool Success, string Summary, string Issue)
{
public static ConversationSummaryResult Succeeded(string summary) => new(true, summary, string.Empty);
public static ConversationSummaryResult Failed(string issue) => new(false, string.Empty, issue);
}