Class AbstractMessage

java.lang.Object
org.springframework.ai.prompt.messages.AbstractMessage
All Implemented Interfaces:
Message
Direct Known Subclasses:
AssistantMessage, ChatMessage, FunctionMessage, SystemMessage, UserMessage

public abstract class AbstractMessage extends Object implements Message
  • Field Details

    • content

      protected String content
    • properties

      protected Map<String,Object> properties
      Additional options for the message to influence the response, not a model map.
    • messageType

      protected MessageType messageType
  • Constructor Details

    • AbstractMessage

      protected AbstractMessage()
    • AbstractMessage

      protected AbstractMessage(MessageType messageType, String content)
    • AbstractMessage

      protected AbstractMessage(MessageType messageType, String content, Map<String,Object> messageProperties)
    • AbstractMessage

      protected AbstractMessage(MessageType messageType, org.springframework.core.io.Resource resource)
    • AbstractMessage

      protected AbstractMessage(MessageType messageType, org.springframework.core.io.Resource resource, Map<String,Object> messageProperties)
  • Method Details