Class CreateFileSearchToolResourceVectorStoreOptions
java.lang.Object
com.azure.ai.openai.assistants.models.CreateFileSearchToolResourceVectorStoreOptions
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CreateFileSearchToolResourceVectorStoreOptions>
public final class CreateFileSearchToolResourceVectorStoreOptions
extends Object
implements com.azure.json.JsonSerializable<CreateFileSearchToolResourceVectorStoreOptions>
File IDs associated to the vector store to be passed to the helper.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CreateFileSearchToolResourceVectorStoreOptions class.CreateFileSearchToolResourceVectorStoreOptions
(List<String> fileIds, VectorStoreChunkingStrategyRequest chunkingStrategy) Creates an instance of CreateFileSearchToolResourceVectorStoreOptions class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of CreateFileSearchToolResourceVectorStoreOptions from the JsonReader.Get the chunkingStrategy property: The chunking strategy used to chunk the file(s).Get the fileIds property: A list of file IDs to add to the vector store.Get the metadata property: A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format.setMetadata
(Map<String, String> metadata) Set the metadata property: A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CreateFileSearchToolResourceVectorStoreOptions
Creates an instance of CreateFileSearchToolResourceVectorStoreOptions class.- Parameters:
fileIds
- the fileIds value to set.
-
CreateFileSearchToolResourceVectorStoreOptions
public CreateFileSearchToolResourceVectorStoreOptions(List<String> fileIds, VectorStoreChunkingStrategyRequest chunkingStrategy) Creates an instance of CreateFileSearchToolResourceVectorStoreOptions class.- Parameters:
fileIds
- the fileIds value to set.chunkingStrategy
- the chunkingStrategy value to set.
-
-
Method Details
-
getFileIds
Get the fileIds property: A list of file IDs to add to the vector store. There can be a maximum of 10000 files in a vector store.- Returns:
- the fileIds value.
-
getMetadata
Get the metadata property: A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.- Returns:
- the metadata value.
-
setMetadata
Set the metadata property: A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.- Parameters:
metadata
- the metadata value to set.- Returns:
- the CreateFileSearchToolResourceVectorStoreOptions object itself.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<CreateFileSearchToolResourceVectorStoreOptions>
- Throws:
IOException
-
fromJson
public static CreateFileSearchToolResourceVectorStoreOptions fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CreateFileSearchToolResourceVectorStoreOptions from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of CreateFileSearchToolResourceVectorStoreOptions 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 CreateFileSearchToolResourceVectorStoreOptions.
-
getChunkingStrategy
Get the chunkingStrategy property: The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy.- Returns:
- the chunkingStrategy value.
-