Class KnowledgeAgentAzureOpenAIModel

java.lang.Object
com.azure.search.documents.indexes.models.KnowledgeAgentModel
com.azure.search.documents.indexes.models.KnowledgeAgentAzureOpenAIModel
All Implemented Interfaces:
com.azure.json.JsonSerializable<KnowledgeAgentModel>

public final class KnowledgeAgentAzureOpenAIModel extends KnowledgeAgentModel
Specifies the Azure OpenAI resource used to do query planning.
  • Constructor Details

    • KnowledgeAgentAzureOpenAIModel

      public KnowledgeAgentAzureOpenAIModel(AzureOpenAIVectorizerParameters azureOpenAIParameters)
      Creates an instance of KnowledgeAgentAzureOpenAIModel class.
      Parameters:
      azureOpenAIParameters - the azureOpenAIParameters value to set.
  • Method Details

    • getKind

      public KnowledgeAgentModelKind getKind()
      Get the kind property: The type of AI model.
      Overrides:
      getKind in class KnowledgeAgentModel
      Returns:
      the kind value.
    • getAzureOpenAIParameters

      public AzureOpenAIVectorizerParameters getAzureOpenAIParameters()
      Get the azureOpenAIParameters property: Contains the parameters specific to Azure OpenAI model endpoint.
      Returns:
      the azureOpenAIParameters value.
    • toJson

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

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