Class UserMessage

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

public class UserMessage extends AbstractMessage implements MediaContent
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.
  • Field Details

  • Constructor Details

    • UserMessage

      public UserMessage(@Nullable String textContent)
    • UserMessage

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