Table of Contents

Constructor EdgeChatTokenBudgetReducer

Namespace
Qavren.Edge.Chat
Assembly
Qavren.Edge.Chat.Onnx.dll

EdgeChatTokenBudgetReducer(Func<string, int>, ChatHistoryOptions)

Creates the reducer.

public EdgeChatTokenBudgetReducer(Func<string, int> countTokens, ChatHistoryOptions options)

Parameters

countTokens Func<string, int>

The model's own tokenizer, injected so the reducer is a tier-1 unit test with no natives.

options ChatHistoryOptions

The history budget.

Exceptions

ArgumentNullException

Either argument is null.