Package io.dapr.client.domain
Interface ConversationMessage
- All Known Implementing Classes:
AssistantMessage,DeveloperMessage,SystemMessage,ToolMessage,UserMessage
public interface ConversationMessage
Interface representing a conversation message with role-specific content.
Supports different message types: system, user, assistant, developer, and tool.
-
Method Details
-
getRole
ConversationMessageRole getRole()Gets the role of the message sender.- Returns:
- the message role
-
getName
String getName()Gets the name of the participant in the message.- Returns:
- the participant name, or null if not specified
-
getContent
List<ConversationMessageContent> getContent()Gets the content of the message.- Returns:
- the message content
-