Class AzureAISearchToolResource
java.lang.Object
com.azure.ai.agents.persistent.models.AzureAISearchToolResource
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AzureAISearchToolResource>
public final class AzureAISearchToolResource
extends Object
implements com.azure.json.JsonSerializable<AzureAISearchToolResource>
A set of index resources used by the `azure_ai_search` tool.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AzureAISearchToolResource class. -
Method Summary
Modifier and TypeMethodDescriptionstatic AzureAISearchToolResourcefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AzureAISearchToolResource from the JsonReader.Get the indexList property: The indices attached to this agent.setIndexList(List<AISearchIndexResource> indexList) Set the indexList property: The indices attached to this agent.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
-
AzureAISearchToolResource
public AzureAISearchToolResource()Creates an instance of AzureAISearchToolResource class.
-
-
Method Details
-
getIndexList
Get the indexList property: The indices attached to this agent. There can be a maximum of 1 index resource attached to the agent.- Returns:
- the indexList value.
-
setIndexList
Set the indexList property: The indices attached to this agent. There can be a maximum of 1 index resource attached to the agent.- Parameters:
indexList- the indexList value to set.- Returns:
- the AzureAISearchToolResource object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AzureAISearchToolResource>- Throws:
IOException
-
fromJson
public static AzureAISearchToolResource fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AzureAISearchToolResource from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AzureAISearchToolResource 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 AzureAISearchToolResource.
-