Uses of Interface
org.springframework.ai.tokenizer.TokenCountEstimator
Packages that use TokenCountEstimator
Package
Description
Provides classes for advising chat clients.
Provides the API for embedding observations.
-
Uses of TokenCountEstimator in org.springframework.ai.chat.client.advisor
Fields in org.springframework.ai.chat.client.advisor declared as TokenCountEstimatorModifier and TypeFieldDescriptionprotected final TokenCountEstimatorLastMaxTokenSizeContentPurger.tokenCountEstimatorConstructors in org.springframework.ai.chat.client.advisor with parameters of type TokenCountEstimatorModifierConstructorDescriptionLastMaxTokenSizeContentPurger(TokenCountEstimator tokenCountEstimator, int maxTokenSize) -
Uses of TokenCountEstimator in org.springframework.ai.embedding
Constructors in org.springframework.ai.embedding with parameters of type TokenCountEstimatorModifierConstructorDescriptionTokenCountBatchingStrategy(TokenCountEstimator tokenCountEstimator, int maxInputTokenCount, double reservePercentage, ContentFormatter contentFormatter, MetadataMode metadataMode) Constructs a TokenCountBatchingStrategy with the specified parameters. -
Uses of TokenCountEstimator in org.springframework.ai.session.compaction
Methods in org.springframework.ai.session.compaction with parameters of type TokenCountEstimatorModifier and TypeMethodDescriptionTokenCountTrigger.Builder.tokenCountEstimator(TokenCountEstimator tokenCountEstimator) WindowCompactionStrategy.Builder.tokenCountEstimator(TokenCountEstimator tokenCountEstimator) The estimator of a token budget and of the tokens a pass saves, applied toEventText; aJTokkitTokenCountEstimatorby default. -
Uses of TokenCountEstimator in org.springframework.ai.tokenizer
Classes in org.springframework.ai.tokenizer that implement TokenCountEstimatorModifier and TypeClassDescriptionclassEstimates the number of tokens in a given text or message using the JTokkit encoding library.