Class FileSearchToolResource
java.lang.Object
com.azure.ai.agents.persistent.models.FileSearchToolResource
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FileSearchToolResource>
public final class FileSearchToolResource
extends Object
implements com.azure.json.JsonSerializable<FileSearchToolResource>
A set of resources that are used by the `file_search` tool.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of FileSearchToolResource class. -
Method Summary
Modifier and TypeMethodDescriptionstatic FileSearchToolResourcefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FileSearchToolResource from the JsonReader.Get the vectorStoreIds property: The ID of the vector store attached to this agent.Get the vectorStores property: The list of vector store configuration objects from Azure.setVectorStoreIds(List<String> vectorStoreIds) Set the vectorStoreIds property: The ID of the vector store attached to this agent.setVectorStores(List<VectorStoreConfigurations> vectorStores) Set the vectorStores property: The list of vector store configuration objects from Azure.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
-
FileSearchToolResource
public FileSearchToolResource()Creates an instance of FileSearchToolResource class.
-
-
Method Details
-
getVectorStoreIds
Get the vectorStoreIds property: The ID of the vector store attached to this agent. There can be a maximum of 1 vector store attached to the agent.- Returns:
- the vectorStoreIds value.
-
setVectorStoreIds
Set the vectorStoreIds property: The ID of the vector store attached to this agent. There can be a maximum of 1 vector store attached to the agent.- Parameters:
vectorStoreIds- the vectorStoreIds value to set.- Returns:
- the FileSearchToolResource object itself.
-
getVectorStores
Get the vectorStores property: The list of vector store configuration objects from Azure. This list is limited to one element. The only element of this list contains the list of azure asset IDs used by the search tool.- Returns:
- the vectorStores value.
-
setVectorStores
Set the vectorStores property: The list of vector store configuration objects from Azure. This list is limited to one element. The only element of this list contains the list of azure asset IDs used by the search tool.- Parameters:
vectorStores- the vectorStores value to set.- Returns:
- the FileSearchToolResource object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<FileSearchToolResource>- Throws:
IOException
-
fromJson
public static FileSearchToolResource fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of FileSearchToolResource from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of FileSearchToolResource 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 FileSearchToolResource.
-