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>
Specifies the Azure OpenAI resource used to do query planning.
-
Constructor Summary
ConstructorsConstructorDescriptionKnowledgeAgentAzureOpenAIModel(AzureOpenAIVectorizerParameters azureOpenAIParameters) Creates an instance of KnowledgeAgentAzureOpenAIModel class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KnowledgeAgentAzureOpenAIModel from the JsonReader.Get the azureOpenAIParameters property: Contains the parameters specific to Azure OpenAI model endpoint.getKind()Get the kind property: The type of AI model.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
-
KnowledgeAgentAzureOpenAIModel
Creates an instance of KnowledgeAgentAzureOpenAIModel class.- Parameters:
azureOpenAIParameters- the azureOpenAIParameters value to set.
-
-
Method Details
-
getKind
Get the kind property: The type of AI model.- Overrides:
getKindin classKnowledgeAgentModel- Returns:
- the kind value.
-
getAzureOpenAIParameters
Get the azureOpenAIParameters property: Contains the parameters specific to Azure OpenAI model endpoint.- Returns:
- the azureOpenAIParameters value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<KnowledgeAgentModel>- Overrides:
toJsonin classKnowledgeAgentModel- 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.
-