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