Package io.dapr.client.domain
Class AssistantMessage
java.lang.Object
io.dapr.client.domain.AssistantMessage
- All Implemented Interfaces:
ConversationMessage
Assistant message containing responses from the AI model.
Can include regular content and/or tool calls that the model wants to make.
-
Constructor Summary
ConstructorsConstructorDescriptionAssistantMessage(List<ConversationMessageContent> content, List<ConversationToolCalls> toolCalls) Creates an assistant message with content and optional tool calls. -
Method Summary
-
Constructor Details
-
AssistantMessage
public AssistantMessage(List<ConversationMessageContent> content, List<ConversationToolCalls> toolCalls) Creates an assistant message with content and optional tool calls.- Parameters:
content- the content of the assistant message.toolCalls- the tool calls requested by the assistant.
-
-
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 assistant 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
-
getToolCalls
-