Added context compression (#1198)

Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
j-erlerandThorsten Sommer authored and GitHub committed 2026-11-21 14:16:04 +01:00
1 parent 28b88580a9
commit 8a4a26503b
54 files changed
+4582 -56

No files matched your search

@@ -0,0 +1,26 @@
namespace AIStudio.Chat.Compression;
/// <summary>
/// Whether a message the AI reads for the summary follows the summary in the new chat word for word.
/// </summary>
/// <remarks>
/// The AI reads the last exchange for the summary as well, so that the summary leads up to it, but
/// it must neither summarize nor repeat it, see ChatCompressionPlan.
/// </remarks>
public enum KeptMessage
{
/// <summary>
/// The summary replaces the message.
/// </summary>
NONE,
/// <summary>
/// The last message of the user, which follows the summary with its files.
/// </summary>
LAST_QUESTION,
/// <summary>
/// The last answer of the AI.
/// </summary>
LAST_ANSWER,
}