Uses of Class
org.springframework.ai.content.Media
Packages that use Media
Package
Description
Chat client API.
Ordered, typed content parts carried by chat messages: text, tool calls, tool results,
media and an opaque fallback for provider blocks that are not modeled yet.
Core observation abstractions.
-
Uses of Media in org.springframework.ai.chat.client
Methods in org.springframework.ai.chat.client that return types with arguments of type MediaModifier and TypeMethodDescriptionDefaultChatClient.DefaultChatClientRequestSpec.getMedia()DefaultChatClient.DefaultPromptUserSpec.media()Methods in org.springframework.ai.chat.client with parameters of type MediaModifier and TypeMethodDescription -
Uses of Media in org.springframework.ai.chat.messages
Fields in org.springframework.ai.chat.messages with type parameters of type MediaModifier and TypeFieldDescriptionAssistantMessage.Builder.mediaAssistantMessage.mediaDeprecated, for removal: This API element is subject to removal in a future version.UserMessage.mediaDeprecated, for removal: This API element is subject to removal in a future version.since 2.1.0 in favor ofUserMessage.getMedia(); kept so existing subclasses that read the field keep compiling.Methods in org.springframework.ai.chat.messages that return types with arguments of type MediaMethods in org.springframework.ai.chat.messages with parameters of type MediaMethod parameters in org.springframework.ai.chat.messages with type arguments of type Media -
Uses of Media in org.springframework.ai.chat.messages.part
Methods in org.springframework.ai.chat.messages.part that return MediaModifier and TypeMethodDescriptionMediaPart.FromDto.convert(MediaPart.MediaDto dto) MediaPart.media()Returns the value of themediarecord component.Methods in org.springframework.ai.chat.messages.part with parameters of type MediaModifier and TypeMethodDescriptionstatic MediaPartCreates a media part without payload or attributes.Constructors in org.springframework.ai.chat.messages.part with parameters of type Media -
Uses of Media in org.springframework.ai.chat.prompt
Method parameters in org.springframework.ai.chat.prompt with type arguments of type MediaModifier and TypeMethodDescriptionPromptTemplate.createMessage(List<Media> mediaList) PromptTemplateMessageActions.createMessage(List<Media> mediaList) -
Uses of Media in org.springframework.ai.content
Methods in org.springframework.ai.content that return MediaModifier and TypeMethodDescriptionMedia.Builder.build()Builds a new Media instance with the configured properties.Methods in org.springframework.ai.content that return types with arguments of type Media -
Uses of Media in org.springframework.ai.document
Methods in org.springframework.ai.document that return MediaModifier and TypeMethodDescription@Nullable MediaDocument.getMedia()Returns the document's media content, if any.Methods in org.springframework.ai.document with parameters of type MediaModifier and TypeMethodDescriptionSets the media content of the document.Constructors in org.springframework.ai.document with parameters of type MediaModifierConstructorDescriptionCreates a media document with a generated ID and the given metadata.Creates a media document with an explicit ID and the given metadata. -
Uses of Media in org.springframework.ai.image
Methods in org.springframework.ai.image that return types with arguments of type MediaConstructor parameters in org.springframework.ai.image with type arguments of type MediaModifierConstructorDescriptionImageMessage(String text, @Nullable Float weight, Collection<Media> media, Map<String, Object> metadata) Create a newImageMessage.
AssistantMessage.getMedia(); kept so existing subclasses that read the field keep compiling.