Package org.springframework.ai.model
Interface Content
- All Known Subinterfaces:
MediaContent
,Message
- All Known Implementing Classes:
AbstractMessage
,AssistantMessage
,Document
,SystemMessage
,ToolResponseMessage
,UserMessage
public interface Content
Data structure that contains content and metadata. Common parent for the
Document
and the
Message
classes.- Since:
- 1.0.0
- Author:
- Mark Pollack, Christian Tzolov
-
Method Summary
Modifier and TypeMethodDescriptionGet the content of the message.Get the metadata associated with the content.
-
Method Details
-
getContent
String getContent()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
-