Class KnowledgeAgentMessageContent

java.lang.Object
com.azure.search.documents.agents.models.KnowledgeAgentMessageContent
All Implemented Interfaces:
com.azure.json.JsonSerializable<KnowledgeAgentMessageContent>
Direct Known Subclasses:
KnowledgeAgentMessageImageContent, KnowledgeAgentMessageTextContent

public class KnowledgeAgentMessageContent extends Object implements com.azure.json.JsonSerializable<KnowledgeAgentMessageContent>
Specifies the type of the message content.
  • Constructor Details

    • KnowledgeAgentMessageContent

      public KnowledgeAgentMessageContent()
      Creates an instance of KnowledgeAgentMessageContent class.
  • Method Details

    • getType

      Get the type property: The type of the message.
      Returns:
      the type value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<KnowledgeAgentMessageContent>
      Throws:
      IOException
    • fromJson

      public static KnowledgeAgentMessageContent fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of KnowledgeAgentMessageContent from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of KnowledgeAgentMessageContent if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the KnowledgeAgentMessageContent.