mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-12-05 14:04:35 +00:00
Added settings for chat compression, with a model of its own (#1241)
This commit is contained in:
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);
|
||||
}
|
||||
Reference in new issue
Block a user