Uses of Class
com.tnsai.memory.strategy.TokenBudget
Packages that use TokenBudget
Package
Description
Context assembly and token estimation for LLM interactions.
Memory management strategies for conversation history within token budgets.
-
Uses of TokenBudget in com.tnsai.context.assembler
Methods in com.tnsai.context.assembler with parameters of type TokenBudgetModifier and TypeMethodDescriptionUnifiedContextAssembler.Builder.tokenBudget(TokenBudget budget) Sets the token budget. -
Uses of TokenBudget in com.tnsai.memory.strategy
Methods in com.tnsai.memory.strategy that return TokenBudgetModifier and TypeMethodDescriptionTokenBudget.Builder.build()static TokenBudgetTokenBudget.forModel(int modelContextWindow) Creates a default budget for common models.ManagedConversationMemory.getBudget()Returns the token budget configuration.static TokenBudgetTokenBudget.withHistoryLimit(int maxHistoryTokens) Creates a budget with a specific history limit.Methods in com.tnsai.memory.strategy with parameters of type TokenBudgetModifier and TypeMethodDescriptionApplies the strategy to the conversation history.ManagedConversationMemory.Builder.tokenBudget(TokenBudget budget) Sets the token budget.