Class AssistantMessage

java.lang.Object
org.springframework.ai.chat.messages.AbstractMessage
org.springframework.ai.chat.messages.AssistantMessage
All Implemented Interfaces:
Message, Content

public class AssistantMessage extends AbstractMessage
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.
Since:
1.0.0
Author:
Mark Pollack, Christian Tzolov