Package uno.anahata.asi.gemini
package uno.anahata.asi.gemini
Provides the provider implementation for Google's Gemini API using the
official GenAI Java SDK.
This package acts as a high-fidelity adapter between Anahata's unified ASI domain model and Gemini's multimodal and agentic capabilities. It supports standard content generation, streaming, tool calling (function calling), and advanced features like "Thinking" blocks and grounding metadata.
Key Components:
- Provider:
GeminiAiProvidermanages the SDK client lifecycle and API key rotation. - Model Logic:
GeminiModelhandles payload preparation and response orchestration. - Message Mapping:
GeminiModelMessageandGeminiResponsetranslate multimodal "Parts" and "Candidates" into the unified Anahata model.
- Author:
- anahata
-
ClassesClassDescriptionThe concrete implementation of the
AbstractAgiProviderfor the Google Gemini API.The concrete implementation of theAbstractAgiProviderfor the Google Gemini API.Gemini-specific implementation of theAbstractModel.An object-oriented representation of a ModelMessage derived from the Gemini provider.A specialized, object-oriented Response class for the Gemini provider.A specializedGeminiModelthat uses hardcoded metadata instead of fetching it from the Gemini API.

