Class ChatMessage
java.lang.Object
org.springframework.ai.chat.messages.AbstractMessage
org.springframework.ai.chat.messages.ChatMessage
- All Implemented Interfaces:
Message
Represents a chat message in a chat application.
-
Field Summary
Fields inherited from class org.springframework.ai.chat.messages.AbstractMessage
mediaData, messageType, properties, textContent
-
Constructor Summary
ConstructorDescriptionChatMessage
(String role, String content) ChatMessage
(MessageType messageType, String content) ChatMessage
(MessageType messageType, String content, Map<String, Object> properties) -
Method Summary
Methods inherited from class org.springframework.ai.chat.messages.AbstractMessage
equals, getContent, getMedia, getMessageType, getProperties, hashCode
-
Constructor Details
-
ChatMessage
-
ChatMessage
-
ChatMessage
-
ChatMessage
-