Uses of Interface
org.springframework.ai.model.MediaContent
Packages that use MediaContent
Package
Description
Provides classes for advising chat clients.
-
Uses of MediaContent in org.springframework.ai.chat.client.advisor
Methods in org.springframework.ai.chat.client.advisor with parameters of type MediaContentModifier and TypeMethodDescriptionprotected int
LastMaxTokenSizeContentPurger.doEstimateTokenCount
(MediaContent datum) Method parameters in org.springframework.ai.chat.client.advisor with type arguments of type MediaContentModifier and TypeMethodDescriptionprotected int
LastMaxTokenSizeContentPurger.doEstimateTokenCount
(List<MediaContent> datum) LastMaxTokenSizeContentPurger.purgeExcess
(List<MediaContent> datum, int totalSize) -
Uses of MediaContent in org.springframework.ai.chat.messages
Classes in org.springframework.ai.chat.messages that implement MediaContentModifier and TypeClassDescriptionclass
A message of the type 'user' passed as input Messages with the user role are from the end-user or developer. -
Uses of MediaContent in org.springframework.ai.document
Classes in org.springframework.ai.document that implement MediaContentModifier and TypeClassDescriptionclass
A document is a container for the content and metadata of a document. -
Uses of MediaContent in org.springframework.ai.tokenizer
Methods in org.springframework.ai.tokenizer with parameters of type MediaContentModifier and TypeMethodDescriptionint
JTokkitTokenCountEstimator.estimate
(MediaContent content) int
TokenCountEstimator.estimate
(MediaContent content) Estimates the number of tokens in the given message.Method parameters in org.springframework.ai.tokenizer with type arguments of type MediaContentModifier and TypeMethodDescriptionint
JTokkitTokenCountEstimator.estimate
(Iterable<MediaContent> contents) int
TokenCountEstimator.estimate
(Iterable<MediaContent> messages) Estimates the number of tokens in the given messages.