Class WhiteSpaceConfig

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public abstract class WhiteSpaceConfig.Builder

      Builder for WhiteSpaceConfig.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Optional<Integer> maxTokensPerChunk() Maximum number of tokens per chunk.
      abstract Optional<Integer> maxOverlapTokens() Maximum number of overlapping tokens between two adjacent chunks.
      static WhiteSpaceConfig.Builder builder() Instantiates a builder for WhiteSpaceConfig.
      abstract WhiteSpaceConfig.Builder toBuilder() Creates a builder with the same values as this instance.
      static WhiteSpaceConfig fromJson(String jsonString) Deserializes a JSON string to a WhiteSpaceConfig object.
      • Methods inherited from class com.google.genai.JsonSerializable

        fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait