Package com.sap.ai.sdk.orchestration
Class SystemMessage
java.lang.Object
com.sap.ai.sdk.orchestration.SystemMessage
- All Implemented Interfaces:
Message
Represents a chat message as 'system' to the orchestration service.
-
Constructor Details
-
SystemMessage
Creates a new system message from a string.- Parameters:
message- the first message.
-
-
Method Details
-
withText
Add text to the message.- Parameters:
message- the text to add.- Returns:
- the new message.
- Since:
- 1.3.0
-
createChatMessage
Description copied from interface:MessageConverts the message to a serializable ChatMessage object.- Specified by:
createChatMessagein interfaceMessage- Returns:
- the corresponding
ChatMessageobject.
-
role
The role of the assistant. -
equals
-
hashCode
public int hashCode() -
toString
-
content
The content of the message.
-