Class KnowledgeAgentRequestLimits

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

public final class KnowledgeAgentRequestLimits extends Object implements com.azure.json.JsonSerializable<KnowledgeAgentRequestLimits>
Guardrails to limit how much resources are utilized for a single agent retrieval request.
  • Constructor Details

    • KnowledgeAgentRequestLimits

      public KnowledgeAgentRequestLimits()
      Creates an instance of KnowledgeAgentRequestLimits class.
  • Method Details

    • getMaxRuntimeInSeconds

      public Integer getMaxRuntimeInSeconds()
      Get the maxRuntimeInSeconds property: The maximum runtime in seconds.
      Returns:
      the maxRuntimeInSeconds value.
    • setMaxRuntimeInSeconds

      public KnowledgeAgentRequestLimits setMaxRuntimeInSeconds(Integer maxRuntimeInSeconds)
      Set the maxRuntimeInSeconds property: The maximum runtime in seconds.
      Parameters:
      maxRuntimeInSeconds - the maxRuntimeInSeconds value to set.
      Returns:
      the KnowledgeAgentRequestLimits object itself.
    • getMaxOutputSize

      public Integer getMaxOutputSize()
      Get the maxOutputSize property: Limits the maximum size of the content in the output.
      Returns:
      the maxOutputSize value.
    • setMaxOutputSize

      public KnowledgeAgentRequestLimits setMaxOutputSize(Integer maxOutputSize)
      Set the maxOutputSize property: Limits the maximum size of the content in the output.
      Parameters:
      maxOutputSize - the maxOutputSize value to set.
      Returns:
      the KnowledgeAgentRequestLimits 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<KnowledgeAgentRequestLimits>
      Throws:
      IOException
    • fromJson

      public static KnowledgeAgentRequestLimits fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of KnowledgeAgentRequestLimits from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of KnowledgeAgentRequestLimits 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 KnowledgeAgentRequestLimits.