Class SystemMessage
java.lang.Object
org.springframework.ai.chat.messages.AbstractMessage
org.springframework.ai.chat.messages.SystemMessage
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.
-
Field Summary
Fields inherited from class org.springframework.ai.chat.messages.AbstractMessage
MESSAGE_TYPE, messageType, metadata, textContent
-
Constructor Summary
ConstructorDescriptionSystemMessage
(String textContent) SystemMessage
(org.springframework.core.io.Resource resource) -
Method Summary
Methods inherited from class org.springframework.ai.chat.messages.AbstractMessage
getMessageType, getMetadata
-
Constructor Details
-
SystemMessage
-
SystemMessage
public SystemMessage(org.springframework.core.io.Resource resource)
-
-
Method Details
-
getContent
Description copied from class:AbstractMessage
Get the content of the message.- Specified by:
getContent
in interfaceContent
- Overrides:
getContent
in classAbstractMessage
- Returns:
- the content of the message
-
equals
- Overrides:
equals
in classAbstractMessage
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractMessage
-
toString
-