mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-12-05 05:04:35 +00:00
14 lines
706 B
C#
14 lines
706 B
C#
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);
|
|
} |