Class FileCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class FileCreateParams.Body.Builder
A builder for Body.
-
-
Method Summary
-
-
Method Detail
-
fileId
final FileCreateParams.Body.Builder fileId(String fileId)
A File ID that the vector store should use. Useful for tools like
file_search
that can access files.
-
fileId
final FileCreateParams.Body.Builder fileId(JsonField<String> fileId)
A File ID that the vector store should use. Useful for tools like
file_search
that can access files.
-
attributes
final FileCreateParams.Body.Builder attributes(FileCreateParams.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 FileCreateParams.Body.Builder attributes(Optional<FileCreateParams.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 FileCreateParams.Body.Builder attributes(JsonField<FileCreateParams.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.
-
chunkingStrategy
final FileCreateParams.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 FileCreateParams.Body.Builder chunkingStrategy(JsonField<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 FileCreateParams.Body.Builder chunkingStrategy(AutoFileChunkingStrategyParam auto)
The default strategy. This strategy currently uses a
max_chunk_size_tokens
of800
andchunk_overlap_tokens
of400
.
-
chunkingStrategy
final FileCreateParams.Body.Builder chunkingStrategy(StaticFileChunkingStrategyObjectParam static_)
Customize your own chunking strategy by setting chunk size and chunk overlap.
-
staticChunkingStrategy
final FileCreateParams.Body.Builder staticChunkingStrategy(StaticFileChunkingStrategy static_)
Customize your own chunking strategy by setting chunk size and chunk overlap.
-
additionalProperties
final FileCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final FileCreateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final FileCreateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final FileCreateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final FileCreateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final FileCreateParams.Body build()
-
-
-
-