Class ThreadCreateAndRunParams.Thread.ToolResources.FileSearch.Builder
-
- All Implemented Interfaces:
public final class ThreadCreateAndRunParams.Thread.ToolResources.FileSearch.Builder
A builder for FileSearch.
-
-
Method Summary
-
-
Method Detail
-
vectorStoreIds
final ThreadCreateAndRunParams.Thread.ToolResources.FileSearch.Builder vectorStoreIds(List<String> vectorStoreIds)
The vector store attached to this thread. There can be a maximum of 1 vector store attached to the thread.
-
vectorStoreIds
final ThreadCreateAndRunParams.Thread.ToolResources.FileSearch.Builder vectorStoreIds(JsonField<List<String>> vectorStoreIds)
Sets Builder.vectorStoreIds to an arbitrary JSON value.
You should usually call Builder.vectorStoreIds with a well-typed
List<String>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addVectorStoreId
final ThreadCreateAndRunParams.Thread.ToolResources.FileSearch.Builder addVectorStoreId(String vectorStoreId)
Adds a single String to vectorStoreIds.
-
vectorStores
final ThreadCreateAndRunParams.Thread.ToolResources.FileSearch.Builder vectorStores(List<ThreadCreateAndRunParams.Thread.ToolResources.FileSearch.VectorStore> vectorStores)
A helper to create a vector store with file_ids and attach it to this thread. There can be a maximum of 1 vector store attached to the thread.
-
vectorStores
final ThreadCreateAndRunParams.Thread.ToolResources.FileSearch.Builder vectorStores(JsonField<List<ThreadCreateAndRunParams.Thread.ToolResources.FileSearch.VectorStore>> vectorStores)
Sets Builder.vectorStores to an arbitrary JSON value.
You should usually call Builder.vectorStores with a well-typed
List<VectorStore>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addVectorStore
final ThreadCreateAndRunParams.Thread.ToolResources.FileSearch.Builder addVectorStore(ThreadCreateAndRunParams.Thread.ToolResources.FileSearch.VectorStore vectorStore)
Adds a single VectorStore to vectorStores.
-
additionalProperties
final ThreadCreateAndRunParams.Thread.ToolResources.FileSearch.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ThreadCreateAndRunParams.Thread.ToolResources.FileSearch.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ThreadCreateAndRunParams.Thread.ToolResources.FileSearch.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ThreadCreateAndRunParams.Thread.ToolResources.FileSearch.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ThreadCreateAndRunParams.Thread.ToolResources.FileSearch.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ThreadCreateAndRunParams.Thread.ToolResources.FileSearch build()
Returns an immutable instance of FileSearch.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-