mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-23 05:33:48 +00:00
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
14 lines
678 B
C#
14 lines
678 B
C#
namespace AIStudio.Chat.Compression;
|
|
|
|
/// <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 ChatCompressionResult(bool Success, string Summary, string Issue)
|
|
{
|
|
public static ChatCompressionResult Succeeded(string summary) => new(true, summary, string.Empty);
|
|
|
|
public static ChatCompressionResult Failed(string issue) => new(false, string.Empty, issue);
|
|
} |