Package com.azure.ai.openai.models
Class AzureChatEnhancementConfiguration
java.lang.Object
com.azure.ai.openai.models.AzureChatEnhancementConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AzureChatEnhancementConfiguration>
public final class AzureChatEnhancementConfiguration
extends Object
implements com.azure.json.JsonSerializable<AzureChatEnhancementConfiguration>
A representation of the available Azure OpenAI enhancement configurations.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AzureChatEnhancementConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AzureChatEnhancementConfiguration from the JsonReader.Get the grounding property: A representation of the available options for the Azure OpenAI grounding enhancement.getOcr()Get the ocr property: A representation of the available options for the Azure OpenAI optical character recognition (OCR) enhancement.Set the grounding property: A representation of the available options for the Azure OpenAI grounding enhancement.Set the ocr property: A representation of the available options for the Azure OpenAI optical character recognition (OCR) enhancement.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
-
AzureChatEnhancementConfiguration
public AzureChatEnhancementConfiguration()Creates an instance of AzureChatEnhancementConfiguration class.
-
-
Method Details
-
getGrounding
Get the grounding property: A representation of the available options for the Azure OpenAI grounding enhancement.- Returns:
- the grounding value.
-
setGrounding
public AzureChatEnhancementConfiguration setGrounding(AzureChatGroundingEnhancementConfiguration grounding) Set the grounding property: A representation of the available options for the Azure OpenAI grounding enhancement.- Parameters:
grounding- the grounding value to set.- Returns:
- the AzureChatEnhancementConfiguration object itself.
-
getOcr
Get the ocr property: A representation of the available options for the Azure OpenAI optical character recognition (OCR) enhancement.- Returns:
- the ocr value.
-
setOcr
Set the ocr property: A representation of the available options for the Azure OpenAI optical character recognition (OCR) enhancement.- Parameters:
ocr- the ocr value to set.- Returns:
- the AzureChatEnhancementConfiguration object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AzureChatEnhancementConfiguration>- Throws:
IOException
-
fromJson
public static AzureChatEnhancementConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AzureChatEnhancementConfiguration from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AzureChatEnhancementConfiguration 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 AzureChatEnhancementConfiguration.
-