Class UserMessage
java.lang.Object
org.springframework.ai.chat.messages.AbstractMessage
org.springframework.ai.chat.messages.UserMessage
- All Implemented Interfaces:
Message
A message of the type 'user' passed as input Messages with the user role are from the
end-user or developer. They represent questions, prompts, or any input that you want
the generative to respond to.
-
Field Summary
Fields inherited from class org.springframework.ai.chat.messages.AbstractMessage
mediaData, messageType, properties, textContent
-
Constructor Summary
ConstructorDescriptionUserMessage
(String message) UserMessage
(String textContent, List<Media> mediaList) UserMessage
(org.springframework.core.io.Resource resource) -
Method Summary
Methods inherited from class org.springframework.ai.chat.messages.AbstractMessage
equals, getContent, getMedia, getMessageType, getProperties, hashCode