Package io.dapr.client.domain
Class SystemMessage
java.lang.Object
io.dapr.client.domain.SystemMessage
- All Implemented Interfaces:
ConversationMessage
System message that sets the behavior or context for the conversation.
Used to provide instructions or context to the AI model.
-
Constructor Summary
ConstructorsConstructorDescriptionSystemMessage(List<ConversationMessageContent> content) Creates a system message with content. -
Method Summary
-
Constructor Details
-
SystemMessage
Creates a system message with content.- Parameters:
content- the content of the system message
-
-
Method Details
-
getRole
Description copied from interface:ConversationMessageGets the role of the message sender.- Specified by:
getRolein interfaceConversationMessage- Returns:
- the message role
-
getName
Description copied from interface:ConversationMessageGets the name of the participant in the message.- Specified by:
getNamein interfaceConversationMessage- Returns:
- the participant name, or null if not specified
-
setName
Sets the name of the system participant.- Parameters:
name- the name to set
-
getContent
Description copied from interface:ConversationMessageGets the content of the message.- Specified by:
getContentin interfaceConversationMessage- Returns:
- the message content
-