Uses of Interface
org.springframework.ai.model.MediaContent
Package
Description
Provides classes for advising chat clients.
-
Uses of MediaContent in org.springframework.ai.chat.client.advisor
Modifier and TypeMethodDescriptionprotected int
LastMaxTokenSizeContentPurger.doEstimateTokenCount
(MediaContent datum) Modifier and TypeMethodDescriptionprotected int
LastMaxTokenSizeContentPurger.doEstimateTokenCount
(List<MediaContent> datum) LastMaxTokenSizeContentPurger.purgeExcess
(List<MediaContent> datum, int totalSize) -
Uses of MediaContent in org.springframework.ai.chat.messages
Modifier 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
Modifier and TypeClassDescriptionclass
A document is a container for the content and metadata of a document. -
Uses of MediaContent in org.springframework.ai.tokenizer
Modifier and TypeMethodDescriptionint
JTokkitTokenCountEstimator.estimate
(MediaContent content) int
TokenCountEstimator.estimate
(MediaContent content) Estimates the number of tokens in the given message.Modifier and TypeMethodDescriptionint
JTokkitTokenCountEstimator.estimate
(Iterable<MediaContent> contents) int
TokenCountEstimator.estimate
(Iterable<MediaContent> messages) Estimates the number of tokens in the given messages.