Class CreateFileSearchToolResourceOptions
java.lang.Object
com.azure.ai.openai.assistants.models.CreateFileSearchToolResourceOptions
A set of resources that are used by the assistant's tools. The resources are specific to the type of tool.
For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires
a list of vector store IDs.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CreateFileSearchToolResourceOptions class.CreateFileSearchToolResourceOptions
(CreateFileSearchToolResourceVectorStoreOptionsList vectorStores) Creates an instance of CreateFileSearchToolResourceOptions class. -
Method Summary
Modifier and TypeMethodDescriptionfromBinaryData
(com.azure.core.util.BinaryData responseFormatBinaryData) Creates a new instance of CreateFileSearchToolResourceOptions based on a JSON string.Ge the vector store IDs attached to this assistant.Get the vector store attached to this assistant.
-
Constructor Details
-
CreateFileSearchToolResourceOptions
public CreateFileSearchToolResourceOptions(CreateFileSearchToolResourceVectorStoreOptionsList vectorStores) Creates an instance of CreateFileSearchToolResourceOptions class.- Parameters:
vectorStores
- the vector stores to set.
-
CreateFileSearchToolResourceOptions
public CreateFileSearchToolResourceOptions(CreateFileSearchToolResourceVectorStoreIds vectorStoreIds) Creates an instance of CreateFileSearchToolResourceOptions class.- Parameters:
vectorStoreIds
- the vector store IDs to set.
-
-
Method Details
-
getVectorStores
Get the vector store attached to this assistant. There can be a maximum of 1 vector store attached to the assistant.- Returns:
- the vectorStores value.
-
getVectorStoreIds
Ge the vector store IDs attached to this assistant. There can be a maximum of 1 vector store attached to the assistant.- Returns:
- the vectorStoreIds value.
-
fromBinaryData
public static CreateFileSearchToolResourceOptions fromBinaryData(com.azure.core.util.BinaryData responseFormatBinaryData) Creates a new instance of CreateFileSearchToolResourceOptions based on a JSON string.- Parameters:
responseFormatBinaryData
- input JSON string- Returns:
- a new instance of CreateFileSearchToolResourceOptions
- Throws:
IllegalArgumentException
- If the provided JSON string does not match the expected format.
-