Constructor EdgeChatTokenBudgetReducer
EdgeChatTokenBudgetReducer(Func<string, int>, ChatHistoryOptions)
Creates the reducer.
public EdgeChatTokenBudgetReducer(Func<string, int> countTokens, ChatHistoryOptions options)
Parameters
countTokensFunc<string, int>The model's own tokenizer, injected so the reducer is a tier-1 unit test with no natives.
optionsChatHistoryOptionsThe history budget.
Exceptions
- ArgumentNullException
Either argument is null.