Uses of Interface
org.springframework.ai.tokenizer.TokenCountEstimator
Package
Description
-
Uses of TokenCountEstimator in org.springframework.ai.chat.client.advisor
Modifier and TypeFieldDescriptionprotected final TokenCountEstimator
LastMaxTokenSizeContentPurger.tokenCountEstimator
ModifierConstructorDescriptionLastMaxTokenSizeContentPurger
(TokenCountEstimator tokenCountEstimator, int maxTokenSize) -
Uses of TokenCountEstimator in org.springframework.ai.embedding
ModifierConstructorDescriptionTokenCountBatchingStrategy
(TokenCountEstimator tokenCountEstimator, int maxInputTokenCount, double reservePercentage, ContentFormatter contentFormatter, MetadataMode metadataMode) Constructs a TokenCountBatchingStrategy with the specified parameters. -
Uses of TokenCountEstimator in org.springframework.ai.tokenizer
Modifier and TypeClassDescriptionclass
Estimates the number of tokens in a given text or message using the JTokkit encoding library.