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 Summary
ConstructorsConstructorDescriptionCreates an instance of KnowledgeAgentRequestLimits class. -
Method Summary
Modifier and TypeMethodDescriptionstatic KnowledgeAgentRequestLimitsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KnowledgeAgentRequestLimits from the JsonReader.Get the maxOutputSize property: Limits the maximum size of the content in the output.Get the maxRuntimeInSeconds property: The maximum runtime in seconds.setMaxOutputSize(Integer maxOutputSize) Set the maxOutputSize property: Limits the maximum size of the content in the output.setMaxRuntimeInSeconds(Integer maxRuntimeInSeconds) Set the maxRuntimeInSeconds property: The maximum runtime in seconds.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
-
KnowledgeAgentRequestLimits
public KnowledgeAgentRequestLimits()Creates an instance of KnowledgeAgentRequestLimits class.
-
-
Method Details
-
getMaxRuntimeInSeconds
Get the maxRuntimeInSeconds property: The maximum runtime in seconds.- Returns:
- the maxRuntimeInSeconds value.
-
setMaxRuntimeInSeconds
Set the maxRuntimeInSeconds property: The maximum runtime in seconds.- Parameters:
maxRuntimeInSeconds- the maxRuntimeInSeconds value to set.- Returns:
- the KnowledgeAgentRequestLimits object itself.
-
getMaxOutputSize
Get the maxOutputSize property: Limits the maximum size of the content in the output.- Returns:
- the maxOutputSize value.
-
setMaxOutputSize
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
- Specified by:
toJsonin interfacecom.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.
-