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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.springframework.ai.chat.messages.AbstractMessage
MESSAGE_TYPE, messageType, metadata, textContent -
Constructor Summary
ConstructorsConstructorDescriptionSystemMessage(@Nullable String textContent) SystemMessage(org.springframework.core.io.Resource resource) -
Method Summary
Modifier and TypeMethodDescriptionstatic SystemMessage.Builderbuilder()copy()mutate()toString()Methods inherited from class org.springframework.ai.chat.messages.AbstractMessage
equals, getMessageType, getMetadata, getParts, getText, hashCode, legacyParts, select