Class ThreadCreateParams.ToolResources.FileSearch.VectorStore.ChunkingStrategy.StaticObject.Static.Builder
-
- All Implemented Interfaces:
public final class ThreadCreateParams.ToolResources.FileSearch.VectorStore.ChunkingStrategy.StaticObject.Static.Builder
A builder for Static.
-
-
Method Summary
-
-
Method Detail
-
chunkOverlapTokens
final ThreadCreateParams.ToolResources.FileSearch.VectorStore.ChunkingStrategy.StaticObject.Static.Builder chunkOverlapTokens(Long chunkOverlapTokens)
The number of tokens that overlap between chunks. The default value is
400
.Note that the overlap must not exceed half of
max_chunk_size_tokens
.
-
chunkOverlapTokens
final ThreadCreateParams.ToolResources.FileSearch.VectorStore.ChunkingStrategy.StaticObject.Static.Builder chunkOverlapTokens(JsonField<Long> chunkOverlapTokens)
Sets Builder.chunkOverlapTokens to an arbitrary JSON value.
You should usually call Builder.chunkOverlapTokens with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
maxChunkSizeTokens
final ThreadCreateParams.ToolResources.FileSearch.VectorStore.ChunkingStrategy.StaticObject.Static.Builder maxChunkSizeTokens(Long maxChunkSizeTokens)
The maximum number of tokens in each chunk. The default value is
800
. The minimum value is100
and the maximum value is4096
.
-
maxChunkSizeTokens
final ThreadCreateParams.ToolResources.FileSearch.VectorStore.ChunkingStrategy.StaticObject.Static.Builder maxChunkSizeTokens(JsonField<Long> maxChunkSizeTokens)
Sets Builder.maxChunkSizeTokens to an arbitrary JSON value.
You should usually call Builder.maxChunkSizeTokens with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ThreadCreateParams.ToolResources.FileSearch.VectorStore.ChunkingStrategy.StaticObject.Static.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ThreadCreateParams.ToolResources.FileSearch.VectorStore.ChunkingStrategy.StaticObject.Static.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ThreadCreateParams.ToolResources.FileSearch.VectorStore.ChunkingStrategy.StaticObject.Static.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ThreadCreateParams.ToolResources.FileSearch.VectorStore.ChunkingStrategy.StaticObject.Static.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ThreadCreateParams.ToolResources.FileSearch.VectorStore.ChunkingStrategy.StaticObject.Static.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ThreadCreateParams.ToolResources.FileSearch.VectorStore.ChunkingStrategy.StaticObject.Static build()
Returns an immutable instance of Static.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.chunkOverlapTokens() .maxChunkSizeTokens()
-
-
-
-