Class ChatRequestToolMessage

java.lang.Object
com.azure.ai.openai.models.ChatRequestMessage
com.azure.ai.openai.models.ChatRequestToolMessage

public final class ChatRequestToolMessage extends ChatRequestMessage
A request chat message representing requested output from a configured tool.
  • Constructor Details

    • ChatRequestToolMessage

      public ChatRequestToolMessage(String content, String toolCallId)
      Creates an instance of ChatRequestToolMessage class.
      Parameters:
      content - the content value to set.
      toolCallId - the toolCallId value to set.
  • Method Details

    • getContent

      public String getContent()
      Get the content property: The content of the message.
      Returns:
      the content value.
    • getToolCallId

      public String getToolCallId()
      Get the toolCallId property: The ID of the tool call resolved by the provided content.
      Returns:
      the toolCallId value.