Package com.google.genai.types
Class WhiteSpaceConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.WhiteSpaceConfig
Configuration for a white space chunking algorithm.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for WhiteSpaceConfig. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WhiteSpaceConfig.Builderbuilder()Instantiates a builder for WhiteSpaceConfig.static WhiteSpaceConfigDeserializes a JSON string to a WhiteSpaceConfig object.Maximum number of overlapping tokens between two adjacent chunks.Maximum number of tokens per chunk.abstract WhiteSpaceConfig.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
setMaxReadLength, stringToJsonNode, toJson
-
Constructor Details
-
WhiteSpaceConfig
public WhiteSpaceConfig()
-
-
Method Details
-
maxTokensPerChunk
Maximum number of tokens per chunk. -
maxOverlapTokens
Maximum number of overlapping tokens between two adjacent chunks. -
builder
Instantiates a builder for WhiteSpaceConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a WhiteSpaceConfig object.
-