Class KnowledgeRetrievalIntent

java.lang.Object
com.azure.search.documents.knowledgebases.models.KnowledgeRetrievalIntent
All Implemented Interfaces:
com.azure.json.JsonSerializable<KnowledgeRetrievalIntent>
Direct Known Subclasses:
KnowledgeRetrievalSemanticIntent

public class KnowledgeRetrievalIntent extends Object implements com.azure.json.JsonSerializable<KnowledgeRetrievalIntent>
An intended query to execute without model query planning.
  • Constructor Details

    • KnowledgeRetrievalIntent

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

    • getType

      public KnowledgeRetrievalIntentType getType()
      Get the type property: The type of the intent.
      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<KnowledgeRetrievalIntent>
      Throws:
      IOException
    • fromJson

      public static KnowledgeRetrievalIntent fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of KnowledgeRetrievalIntent from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of KnowledgeRetrievalIntent 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 KnowledgeRetrievalIntent.