Class ConversationResultMessage

java.lang.Object
io.dapr.client.domain.ConversationResultMessage

public class ConversationResultMessage extends Object
Represents a conversation result message with content and optional tool calls.
  • Constructor Details

    • ConversationResultMessage

      public ConversationResultMessage(String content, List<ConversationToolCalls> toolCalls)
      Constructor.
      Parameters:
      content - the contents of the message
      toolCalls - the tool calls generated by the model (optional)
    • ConversationResultMessage

      public ConversationResultMessage(String content)
      Constructor for message without tool calls.
      Parameters:
      content - the contents of the message
  • Method Details

    • getContent

      public String getContent()
      Gets the contents of the message.
      Returns:
      the message content
    • getToolCalls

      public List<ConversationToolCalls> 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