Package com.azure.ai.openai.models
Class AzureChatExtensionConfiguration
java.lang.Object
com.azure.ai.openai.models.AzureChatExtensionConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AzureChatExtensionConfiguration>
- Direct Known Subclasses:
AzureCosmosDBChatExtensionConfiguration,AzureMachineLearningIndexChatExtensionConfiguration,AzureSearchChatExtensionConfiguration,ElasticsearchChatExtensionConfiguration,PineconeChatExtensionConfiguration
public class AzureChatExtensionConfiguration
extends Object
implements com.azure.json.JsonSerializable<AzureChatExtensionConfiguration>
A representation of configuration data for a single Azure OpenAI chat extension. This will be used by a chat
completions request that should use Azure OpenAI chat extensions to augment the response behavior.
The use of this configuration is compatible only with Azure OpenAI.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AzureChatExtensionConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AzureChatExtensionConfiguration from the JsonReader.getType()Get the type property: The label for the type of an Azure chat extension.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter)
-
Constructor Details
-
AzureChatExtensionConfiguration
public AzureChatExtensionConfiguration()Creates an instance of AzureChatExtensionConfiguration class.
-
-
Method Details
-
getType
Get the type property: The label for the type of an Azure chat extension. This typically corresponds to a matching Azure resource. Azure chat extensions are only compatible with Azure OpenAI.- Returns:
- the type value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AzureChatExtensionConfiguration>- Throws:
IOException
-
fromJson
public static AzureChatExtensionConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AzureChatExtensionConfiguration from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AzureChatExtensionConfiguration 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 AzureChatExtensionConfiguration.
-