Package org.springframework.ai.content
Interface Content
- All Known Subinterfaces:
MediaContent
public interface Content
Data structure that contains content and metadata. Common parent for the
org.springframework.ai.chat.messages.Message and MediaContent types.- Since:
- 1.0.0
- Author:
- Mark Pollack, Christian Tzolov
-
Method Summary
-
Method Details
-
getText
@Nullable String getText()Get the content of the message.- Returns:
- the content of the message
-
getMetadata
Get the metadata associated with the content.- Returns:
- the metadata associated with the content
-