Class VectorStoreCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class VectorStoreCreateParams.Body.Builder
A builder for Body.
-
-
Method Summary
-
-
Method Detail
-
chunkingStrategy
final VectorStoreCreateParams.Body.Builder chunkingStrategy(FileChunkingStrategyParam chunkingStrategy)
The chunking strategy used to chunk the file(s). If not set, will use the
auto
strategy. Only applicable iffile_ids
is non-empty.
-
chunkingStrategy
final VectorStoreCreateParams.Body.Builder chunkingStrategy(JsonField<FileChunkingStrategyParam> chunkingStrategy)
Sets Builder.chunkingStrategy to an arbitrary JSON value.
You should usually call Builder.chunkingStrategy with a well-typed FileChunkingStrategyParam value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
chunkingStrategy
final VectorStoreCreateParams.Body.Builder chunkingStrategy(AutoFileChunkingStrategyParam auto)
Alias for calling chunkingStrategy with
FileChunkingStrategyParam.ofAuto(auto)
.
-
chunkingStrategy
final VectorStoreCreateParams.Body.Builder chunkingStrategy(StaticFileChunkingStrategyObjectParam static_)
Alias for calling chunkingStrategy with
FileChunkingStrategyParam.ofStatic(static_)
.
-
staticChunkingStrategy
final VectorStoreCreateParams.Body.Builder staticChunkingStrategy(StaticFileChunkingStrategy static_)
Alias for calling chunkingStrategy with the following:
StaticFileChunkingStrategyObjectParam.builder() .static_(static_) .build()
-
expiresAfter
final VectorStoreCreateParams.Body.Builder expiresAfter(VectorStoreCreateParams.ExpiresAfter expiresAfter)
The expiration policy for a vector store.
-
expiresAfter
final VectorStoreCreateParams.Body.Builder expiresAfter(JsonField<VectorStoreCreateParams.ExpiresAfter> expiresAfter)
Sets Builder.expiresAfter to an arbitrary JSON value.
You should usually call Builder.expiresAfter with a well-typed ExpiresAfter value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
fileIds
final VectorStoreCreateParams.Body.Builder fileIds(List<String> fileIds)
A list of File IDs that the vector store should use. Useful for tools like
file_search
that can access files.
-
fileIds
final VectorStoreCreateParams.Body.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 VectorStoreCreateParams.Body.Builder addFileId(String fileId)
-
metadata
final VectorStoreCreateParams.Body.Builder metadata(VectorStoreCreateParams.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 VectorStoreCreateParams.Body.Builder metadata(Optional<VectorStoreCreateParams.Metadata> metadata)
Alias for calling Builder.metadata with
metadata.orElse(null)
.
-
metadata
final VectorStoreCreateParams.Body.Builder metadata(JsonField<VectorStoreCreateParams.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.
-
name
final VectorStoreCreateParams.Body.Builder name(String name)
The name of the vector store.
-
name
final VectorStoreCreateParams.Body.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final VectorStoreCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final VectorStoreCreateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final VectorStoreCreateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final VectorStoreCreateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final VectorStoreCreateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final VectorStoreCreateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-