Package org.machanism.machai.ai.provider.gemini


package org.machanism.machai.ai.provider.gemini
Provides the Gemini-specific implementation of MachAI's provider abstraction.

This package contains GeminiProvider, a Genai implementation intended to translate MachAI request concepts such as prompts, system instructions, tool registration, embeddings, usage reporting, and file-based context into calls to Google's Gemini models.

The current package represents an early-stage integration scaffold. The public API documents the intended behavior of the provider while several operations remain marked as not yet implemented. Even in this incomplete state, the package defines the expected lifecycle for Gemini-backed interactions, including initialization, prompt collection, execution, and usage inspection.

Usage overview

Typical interaction starts by creating and initializing the provider, optionally configuring instructions or tools, submitting prompt content, and then invoking the request.

 Genai genai = new GeminiProvider();
 genai.init(conf);
 genai.instructions("You are a helpful assistant.");
 genai.prompt("Summarize the following text.");
 String response = genai.perform();