Class AssistantMessage

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

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.
  • Constructor Details

    • AssistantMessage

      public AssistantMessage(String content)
    • AssistantMessage

      public AssistantMessage(String content, Map<String,Object> properties)
  • Method Details