Class ChunkingConfig

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ChunkingConfig

public abstract class ChunkingConfig extends JsonSerializable
Config for telling the service how to chunk the file.
  • Constructor Details

    • ChunkingConfig

      public ChunkingConfig()
  • Method Details

    • whiteSpaceConfig

      public abstract Optional<WhiteSpaceConfig> whiteSpaceConfig()
      White space chunking configuration.
    • builder

      public static ChunkingConfig.Builder builder()
      Instantiates a builder for ChunkingConfig.
    • toBuilder

      public abstract ChunkingConfig.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static ChunkingConfig fromJson(String jsonString)
      Deserializes a JSON string to a ChunkingConfig object.