Files
AI-Studio/app/MindWork AI Studio/AIOperations/ConversationSummary/ConversationSummaryResult.cs
T

14 lines
706 B
C#
Raw Normal View History

namespace AIStudio.AIOperations.ConversationSummary;
2026-11-21 14:16:04 +01:00
/// <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)
2026-11-21 14:16:04 +01:00
{
public static ConversationSummaryResult Succeeded(string summary) => new(true, summary, string.Empty);
2026-11-21 14:16:04 +01:00
public static ConversationSummaryResult Failed(string issue) => new(false, string.Empty, issue);
2026-11-21 14:16:04 +01:00
}