Class AssistantMessage

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

public class AssistantMessage extends AbstractMessage
Lets the model know the content was generated as a response to the user. This role indicates messages that the model has previously generated in the conversation. By including assistant messages in the series, you provide context to the model about prior exchanges in the conversation.
  • Constructor Details

    • AssistantMessage

      public AssistantMessage(String content)
    • AssistantMessage

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