FileSearchToolResource Class
- java.
lang. Object - com.
azure. ai. agents. persistent. models. FileSearchToolResource
- com.
Implements
public final class FileSearchToolResource
implements JsonSerializable<FileSearchToolResource>
A set of resources that are used by the `file_search` tool.
Constructor Summary
| Constructor | Description |
|---|---|
| FileSearchToolResource() |
Creates an instance of File |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
File |
fromJson(JsonReader jsonReader)
Reads an instance of File |
| List<String> |
getVectorStoreIds()
Get the vector |
|
List<Vector |
getVectorStores()
Get the vector |
|
File |
setVectorStoreIds(List<String> vectorStoreIds)
Set the vector |
|
File |
setVectorStores(List<VectorStoreConfigurations> vectorStores)
Set the vector |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
FileSearchToolResource
public FileSearchToolResource()
Creates an instance of FileSearchToolResource class.
Method Details
fromJson
public static FileSearchToolResource fromJson(JsonReader jsonReader)
Reads an instance of FileSearchToolResource from the JsonReader.
Parameters:
Returns:
Throws:
getVectorStoreIds
public List<String> 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:
getVectorStores
public List<VectorStoreConfigurations> 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:
setVectorStoreIds
public FileSearchToolResource setVectorStoreIds(List<String> vectorStoreIds)
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:
Returns:
setVectorStores
public FileSearchToolResource setVectorStores(List<VectorStoreConfigurations> vectorStores)
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:
Returns: