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,22 @@
namespace AIStudio.Chat.Compression;
/// <summary>
/// What compressing a chat is busy with, see ChatCompressionService.SummarizeAsync.
/// </summary>
public enum ChatCompressionStep
{
/// <summary>
/// AI Studio reads the messages to summarize and the documents attached to them.
/// </summary>
READING_FILES,
/// <summary>
/// The AI summarizes the conversation, one part after the other.
/// </summary>
SUMMARIZING,
/// <summary>
/// The AI shortens a summary which grew too long, see ChatCompressionService.IsTooLong.
/// </summary>
CONDENSING,
}