Class AssistantMessage
java.lang.Object
org.springframework.ai.chat.messages.AbstractMessage
org.springframework.ai.chat.messages.AssistantMessage
- All Implemented Interfaces:
Message
Lets the generative know the content was generated as a response to the user. This role
indicates messages that the generative has previously generated in the conversation. By
including assistant messages in the series, you provide context to the generative about
prior exchanges in the conversation.
-
Field Summary
Fields inherited from class org.springframework.ai.chat.messages.AbstractMessage
mediaData, messageType, properties, textContent
-
Constructor Summary
ConstructorDescriptionAssistantMessage
(String content) AssistantMessage
(String content, Map<String, Object> properties) -
Method Summary
Methods inherited from class org.springframework.ai.chat.messages.AbstractMessage
equals, getContent, getMedia, getMessageType, getProperties, hashCode