namespace AIStudio.AIOperations.ConversationSummary; /// /// The summary the AI wrote of a chat, or why there is none. /// /// Whether there is a summary. /// The summary, as the AI wrote it. Not filtered for prompt injections yet. /// Why there is no summary, for the user. Empty on success. 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); }