2026-11-15 10:32:46 +01:00
|
|
|
namespace AIStudio.Chat.Embedded;
|
2026-11-09 09:55:01 +01:00
|
|
|
|
|
|
|
|
/// <summary>
|
2026-11-15 10:32:46 +01:00
|
|
|
/// How much room an embedded chat has left in the context of its model.
|
2026-11-09 09:55:01 +01:00
|
|
|
/// </summary>
|
2026-11-15 10:32:46 +01:00
|
|
|
public enum EmbeddedChatTokenBudgetState
|
2026-11-09 09:55:01 +01:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Nobody knows: the count failed, or the model has no statement about its context.
|
|
|
|
|
/// </summary>
|
|
|
|
|
UNKNOWN,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Room enough.
|
|
|
|
|
/// </summary>
|
|
|
|
|
OK,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2026-11-15 10:32:46 +01:00
|
|
|
/// Most of the context is used; the user should think about starting over.
|
2026-11-09 09:55:01 +01:00
|
|
|
/// </summary>
|
|
|
|
|
WARNING,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2026-11-15 10:32:46 +01:00
|
|
|
/// The next message and its answer would not fit anymore, so the chat sends no more.
|
2026-11-09 09:55:01 +01:00
|
|
|
/// </summary>
|
|
|
|
|
FULL,
|
|
|
|
|
}
|