Package org.springframework.ai.chat.messages.part
@NullMarked
package org.springframework.ai.chat.messages.part
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.
-
ClassDescriptionA media element (image, audio, video, document) produced by the model or supplied by the caller.Jackson converter from
MediaPart.MediaDtotoMedia.Serialized form of aMedia.Jackson converter fromMediatoMediaPart.MediaDto.One element of the ordered content of a chat message.Provider-owned data attached to aMessagePart(or to aReasoningPart) that Spring AI never interprets and that must be sent back unchanged to the provider that produced it.Model reasoning (thinking) that preceded or accompanied the answer.Transport attributes that let a streaming chat model deliver a message part in increments and letMessageAggregatorrebuild the ordered parts list.A run of text produced by the model or supplied by the caller.A tool call requested by the model.The result of one tool call.A part that neither an adapter nor this version of Spring AI recognizes, kept verbatim so nothing is silently dropped.