Class UserMessage

java.lang.Object
org.springframework.ai.prompt.messages.AbstractMessage
org.springframework.ai.prompt.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 model to respond to.
  • Constructor Details

    • UserMessage

      public UserMessage(String message)
    • UserMessage

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