Class UserMessage

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

public class UserMessage extends AbstractMessage
A message of the type 'user' passed as input Messages with the user role are from the end-user or developer. They represent questions, prompts, or any input that you want the generative to respond to.
  • Constructor Details

    • UserMessage

      public UserMessage(String message)
    • UserMessage

      public UserMessage(org.springframework.core.io.Resource resource)
    • UserMessage

      public UserMessage(String textContent, List<Media> mediaList)
  • Method Details