Package org.springframework.ai.model
Interface Content
- All Known Subinterfaces:
MediaContent
,Message
- All Known Implementing Classes:
AbstractMessage
,AssistantMessage
,SimpleVectorStoreContent
,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 TypeMethodDescriptionDeprecated.Use getTextGet the metadata associated with the content.getText()
Get the content of the message.
-
Method Details
-
getText
String getText()Get the content of the message.- Returns:
- the content of the message
-
getContent
Deprecated.Use getTextGet 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
-