Class ThreadCreateParams.ToolResources.FileSearch.VectorStore.Builder
-
- All Implemented Interfaces:
public final class ThreadCreateParams.ToolResources.FileSearch.VectorStore.Builder
A builder for VectorStore.
-
-
Method Summary
-
-
Method Detail
-
chunkingStrategy
final ThreadCreateParams.ToolResources.FileSearch.VectorStore.Builder chunkingStrategy(ThreadCreateParams.ToolResources.FileSearch.VectorStore.ChunkingStrategy chunkingStrategy)
The chunking strategy used to chunk the file(s). If not set, will use the
auto
strategy.
-
chunkingStrategy
final ThreadCreateParams.ToolResources.FileSearch.VectorStore.Builder chunkingStrategy(JsonField<ThreadCreateParams.ToolResources.FileSearch.VectorStore.ChunkingStrategy> chunkingStrategy)
Sets Builder.chunkingStrategy to an arbitrary JSON value.
You should usually call Builder.chunkingStrategy with a well-typed ChunkingStrategy value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
chunkingStrategy
final ThreadCreateParams.ToolResources.FileSearch.VectorStore.Builder chunkingStrategy(ThreadCreateParams.ToolResources.FileSearch.VectorStore.ChunkingStrategy.StaticObject static_)
Alias for calling chunkingStrategy with
ChunkingStrategy.ofStatic(static_)
.
-
chunkingStrategyAuto
final ThreadCreateParams.ToolResources.FileSearch.VectorStore.Builder chunkingStrategyAuto()
Alias for calling chunkingStrategy with
ChunkingStrategy.ofAuto()
.
-
staticChunkingStrategy
final ThreadCreateParams.ToolResources.FileSearch.VectorStore.Builder staticChunkingStrategy(ThreadCreateParams.ToolResources.FileSearch.VectorStore.ChunkingStrategy.StaticObject.Static static_)
Alias for calling chunkingStrategy with the following:
ChunkingStrategy.StaticObject.builder() .static_(static_) .build()
-
fileIds
final ThreadCreateParams.ToolResources.FileSearch.VectorStore.Builder fileIds(List<String> fileIds)
A list of file IDs to add to the vector store. There can be a maximum of 10000 files in a vector store.
-
fileIds
final ThreadCreateParams.ToolResources.FileSearch.VectorStore.Builder fileIds(JsonField<List<String>> fileIds)
Sets Builder.fileIds to an arbitrary JSON value.
You should usually call Builder.fileIds with a well-typed
List<String>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addFileId
final ThreadCreateParams.ToolResources.FileSearch.VectorStore.Builder addFileId(String fileId)
-
metadata
final ThreadCreateParams.ToolResources.FileSearch.VectorStore.Builder metadata(ThreadCreateParams.ToolResources.FileSearch.VectorStore.Metadata metadata)
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
-
metadata
final ThreadCreateParams.ToolResources.FileSearch.VectorStore.Builder metadata(Optional<ThreadCreateParams.ToolResources.FileSearch.VectorStore.Metadata> metadata)
Alias for calling Builder.metadata with
metadata.orElse(null)
.
-
metadata
final ThreadCreateParams.ToolResources.FileSearch.VectorStore.Builder metadata(JsonField<ThreadCreateParams.ToolResources.FileSearch.VectorStore.Metadata> metadata)
Sets Builder.metadata to an arbitrary JSON value.
You should usually call Builder.metadata with a well-typed Metadata value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ThreadCreateParams.ToolResources.FileSearch.VectorStore.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ThreadCreateParams.ToolResources.FileSearch.VectorStore.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ThreadCreateParams.ToolResources.FileSearch.VectorStore.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ThreadCreateParams.ToolResources.FileSearch.VectorStore.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ThreadCreateParams.ToolResources.FileSearch.VectorStore.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ThreadCreateParams.ToolResources.FileSearch.VectorStore build()
Returns an immutable instance of VectorStore.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-