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 Summary
ConstructorsConstructorDescriptionCreates an instance of KnowledgeAgentMessageContent class. -
Method Summary
Modifier and TypeMethodDescriptionstatic KnowledgeAgentMessageContentfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KnowledgeAgentMessageContent from the JsonReader.getType()Get the type property: The type of the message.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
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
- Specified by:
toJsonin interfacecom.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.
-