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.Dialogs;
/// <summary>
/// What should happen with a message which does not fit into the context window of the model.
/// </summary>
public enum ContextWindowFullDecision
{
/// <summary>
/// Send nothing. The message stays where it is, so the user can change it.
/// </summary>
CANCEL,
/// <summary>
/// Compress the chat first. The message goes along, and the user sends it afterward.
/// </summary>
COMPRESS,
/// <summary>
/// Send the message as it is and leave it to the provider what happens.
/// </summary>
SEND_ANYWAY,
}