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.Embedded;
/// <summary>
/// What an embedded chat tells the user before it sends a message, see EmbeddedChatTokenBudget.NoticeBeforeSending.
/// </summary>
public enum EmbeddedChatSendNotice
{
/// <summary>
/// Nothing: the message fits, or nobody knows the context window of the model.
/// </summary>
NONE,
/// <summary>
/// The message nearly fills the context window; the user may send it anyway.
/// </summary>
NEARLY_FULL,
/// <summary>
/// With the message, the conversation leaves no room for the next answer; the chat does not send it.
/// </summary>
FULL,
}