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 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

      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.