Class SystemMessage

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

public class SystemMessage extends AbstractMessage
A message of the type 'system' passed as input. The system message gives high level instructions for the conversation. This role typically provides high-level instructions for the conversation. For example, you might use a system message to instruct the generative to behave like a certain character or to provide answers in a specific format.
  • Constructor Details

    • SystemMessage

      public SystemMessage(String content)
    • SystemMessage

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