Class KnowledgeAgent
java.lang.Object
com.azure.search.documents.indexes.models.KnowledgeAgent
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KnowledgeAgent>
public final class KnowledgeAgent
extends Object
implements com.azure.json.JsonSerializable<KnowledgeAgent>
The KnowledgeAgent model.
-
Constructor Summary
ConstructorsConstructorDescriptionKnowledgeAgent(String name, List<KnowledgeAgentModel> models, List<KnowledgeAgentTargetIndex> targetIndexes) Creates an instance of KnowledgeAgent class. -
Method Summary
Modifier and TypeMethodDescriptionstatic KnowledgeAgentfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KnowledgeAgent from the JsonReader.Get the description property: The description of the agent.Get the encryptionKey property: A description of an encryption key that you create in Azure Key Vault.getETag()Get the eTag property: The ETag of the agent.Get the models property: Contains configuration options on how to connect to AI models.getName()Get the name property: The name of the knowledge agent.Get the requestLimits property: Guardrails to limit how much resources are utilized for a single agent retrieval request.Get the targetIndexes property: The targetIndexes property.setDescription(String description) Set the description property: The description of the agent.setEncryptionKey(SearchResourceEncryptionKey encryptionKey) Set the encryptionKey property: A description of an encryption key that you create in Azure Key Vault.Set the eTag property: The ETag of the agent.setRequestLimits(KnowledgeAgentRequestLimits requestLimits) Set the requestLimits property: Guardrails to limit how much resources are utilized for a single agent retrieval request.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
-
KnowledgeAgent
public KnowledgeAgent(String name, List<KnowledgeAgentModel> models, List<KnowledgeAgentTargetIndex> targetIndexes) Creates an instance of KnowledgeAgent class.- Parameters:
name- the name value to set.models- the models value to set.targetIndexes- the targetIndexes value to set.
-
-
Method Details
-
getName
Get the name property: The name of the knowledge agent.- Returns:
- the name value.
-
getModels
Get the models property: Contains configuration options on how to connect to AI models.- Returns:
- the models value.
-
getTargetIndexes
Get the targetIndexes property: The targetIndexes property.- Returns:
- the targetIndexes value.
-
getRequestLimits
Get the requestLimits property: Guardrails to limit how much resources are utilized for a single agent retrieval request.- Returns:
- the requestLimits value.
-
setRequestLimits
Set the requestLimits property: Guardrails to limit how much resources are utilized for a single agent retrieval request.- Parameters:
requestLimits- the requestLimits value to set.- Returns:
- the KnowledgeAgent object itself.
-
getETag
Get the eTag property: The ETag of the agent.- Returns:
- the eTag value.
-
setETag
Set the eTag property: The ETag of the agent.- Parameters:
eTag- the eTag value to set.- Returns:
- the KnowledgeAgent object itself.
-
getEncryptionKey
Get the encryptionKey property: A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your agent definition when you want full assurance that no one, not even Microsoft, can decrypt them. Once you have encrypted your agent definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your agent definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019.- Returns:
- the encryptionKey value.
-
setEncryptionKey
Set the encryptionKey property: A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your agent definition when you want full assurance that no one, not even Microsoft, can decrypt them. Once you have encrypted your agent definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your agent definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019.- Parameters:
encryptionKey- the encryptionKey value to set.- Returns:
- the KnowledgeAgent object itself.
-
getDescription
Get the description property: The description of the agent.- Returns:
- the description value.
-
setDescription
Set the description property: The description of the agent.- Parameters:
description- the description value to set.- Returns:
- the KnowledgeAgent object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<KnowledgeAgent>- Throws:
IOException
-
fromJson
Reads an instance of KnowledgeAgent from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of KnowledgeAgent if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the KnowledgeAgent.
-