Package uno.anahata.ai.internal
package uno.anahata.ai.internal
Provides a comprehensive suite of internal utility classes that support the core functionalities of the Gemini client.
This package contains essential helper classes for a wide range of operations, but they are designed for internal use and are not part of the public API. These utilities encapsulate critical logic for serialization, data handling, and text processing.
Key Responsibilities:
- Serialization:
- Content and Data Handling:
ContentUtils: Offers methods for the immutable manipulation ofContentobjects.PartUtils: A versatile helper for creating and analyzingPartobjects, including MIME type detection and token count estimation.TikaUtils: A clean wrapper around Apache Tika for file type detection and content extraction.
- Text Processing:
TextUtils: A powerful utility for processing and formatting text, featuring pagination, regex filtering (grep), and intelligent line truncation.
Subpackages:
uno.anahata.ai.internal.kryo: Contains custom serializers for the Kryo framework, such as the one forOptional, to ensure complete and correct session state persistence.
-
ClassesClassDescriptionUtility methods for working with the Google GenAI
Contentobject.Utility class for GSON-based JSON operations.A generic utility class for Jackson-based JSON operations.Utility class for high-performance object serialization using the Kryo library.Utility methods for working with GeminiPartobjects.Utility methods for processing and formatting text content.Utility class for file type detection and content extraction using Apache Tika.
