Package io.dapr.client.domain
Class ConversationResultMessage
java.lang.Object
io.dapr.client.domain.ConversationResultMessage
Represents a conversation result message with content and optional tool calls.
-
Constructor Summary
ConstructorsConstructorDescriptionConversationResultMessage(String content) Constructor for message without tool calls.ConversationResultMessage(String content, List<ConversationToolCalls> toolCalls) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the contents of the message.Gets the tool calls generated by the model.booleanChecks if the message has tool calls.
-
Constructor Details
-
ConversationResultMessage
Constructor.- Parameters:
content- the contents of the messagetoolCalls- the tool calls generated by the model (optional)
-
ConversationResultMessage
Constructor for message without tool calls.- Parameters:
content- the contents of the message
-
-
Method Details
-
getContent
Gets the contents of the message.- Returns:
- the message content
-
getToolCalls
Gets the tool calls generated by the model.- Returns:
- the tool calls, or null if none
-
hasToolCalls
public boolean hasToolCalls()Checks if the message has tool calls.- Returns:
- true if there are tool calls, false otherwise
-