Package io.dapr.client.domain
Class UserMessage
java.lang.Object
io.dapr.client.domain.UserMessage
- All Implemented Interfaces:
ConversationMessage
User message containing input from the human user.
Represents questions, requests, or other input from the end user.
-
Constructor Summary
ConstructorsConstructorDescriptionUserMessage(List<ConversationMessageContent> content) Creates a user message with content. -
Method Summary
-
Constructor Details
-
UserMessage
Creates a user message with content.- Parameters:
content- the content of the user 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 user participant.- Parameters:
name- the name to set- Returns:
- this instance for method chaining
-
getContent
Description copied from interface:ConversationMessageGets the content of the message.- Specified by:
getContentin interfaceConversationMessage- Returns:
- the message content
-