API Reference GeminiEx v#0.7.3

View Source

Modules

Batches API for batch processing of content generation and embedding requests.

Context caching API for improved performance with long context.

Coordinates API calls across different authentication strategies and endpoints.

Documents API for RAG (Retrieval-Augmented Generation) document management.

Files API for uploading, managing, and using files with Gemini models.

Complete Models API implementation following the unified architecture.

Operations API for managing long-running operations.

RAG Stores API for managing file search stores.

Token counting functionality for Gemini API.

Authentication strategy behavior and implementations for Gemini and Vertex AI.

Authentication strategy for Google Gemini API using API key.

JWT token generation and management for Google Cloud service accounts.

Coordinates multiple authentication strategies for concurrent usage.

Behavior for authentication strategies.

Authentication strategy for Google Vertex AI using OAuth2/Service Account.

Formalized chat session management with immutable history updates.

Main client module that delegates to the appropriate HTTP client implementation.

Unified HTTP client for both Gemini and Vertex AI APIs using Req.

HTTP client for streaming Server-Sent Events (SSE) from Gemini API.

Unified configuration management for both Gemini and Vertex AI authentication.

Standardized error structure for Gemini client.

API for generating content with Gemini models.

API for managing and querying Gemini models.

Rate limiting, concurrency gating, and retry management for Gemini API requests.

Per-model concurrency gating using semaphore-like permits.

Configuration management for the rate limiter.

Central rate limiter manager that coordinates request submission.

Manages retry logic with backoff strategies.

ETS-based state management for rate limiting.

Server-Sent Events (SSE) parser for streaming responses.

GenServer for managing streaming connections and state.

Improved GenServer for managing streaming connections and state.

GenServer responsible for managing a single, stateful, automatic tool-calling stream.

Unified streaming manager that supports multiple authentication strategies.

Top-level supervisor for the Gemini application.

Telemetry instrumentation helpers for Gemini library.

High-level facade for tool registration and execution in the Gemini client.

Implements the Automatic Function Calling (AFC) loop for Gemini.

Configuration for automatic function calling.

Executes function calls from Gemini API responses against a registry of implementations.

Type definitions for batch processing jobs.

Binary data with MIME type for Gemini API.

Metadata describing cached content usage.

Content type for Gemini API requests and responses.

Configuration for creating a batch job.

Response type for file deletion.

Type definitions for RAG document management.

Comprehensive enumeration types for the Gemini API.

Image aspect ratios for image generation.

Reasons why content generation was blocked.

Outcome of code execution.

Dynamic retrieval configuration modes.

Supported languages for code execution.

Reasons why generation finished.

Function calling configuration modes.

Confidence levels for grounding attribution.

Threshold levels for blocking harmful content.

Categories of harmful content that can be filtered.

Probability levels of harmful content.

Output image sizes for image generation.

Task types for embedding generation.

Thinking configuration levels for Gemini 3 models.

Available voice names for text-to-speech.

Type definitions for file management operations.

URI-based file data reference used in parts and tool results.

Result output of a function call.

Configuration for content generation parameters.

Configuration for image generation in Gemini 3 Pro Image.

Configuration for thinking/reasoning in Gemini models.

Response type for listing batch jobs.

Response type for listing documents in a RAG store.

Response type for listing files.

Response type for listing operations.

Response type for listing RAG stores.

Media resolution enum for controlling token allocation on media inputs.

Response modality types for multimodal generation.

Type definitions for long-running operations.

Part type for content in Gemini API.

Media resolution settings for Gemini 3 vision processing.

Configuration for a prebuilt voice.

Type definitions for RAG stores (FileSearchStores).

Request structure for batch embedding multiple content items.

Request structure for counting tokens.

Async batch embedding job request.

Request structure for embedding content using Gemini embedding models.

Request structure for content generation.

Request structure for getting a specific model.

A single embedding request within an async batch, with optional metadata.

Container for multiple inlined embedding requests in a batch.

Input configuration for async batch embedding.

Request structure for listing models with pagination support.

Response types for the Gemini API.

Response structure for batch embedding requests.

Represents the state of an async batch embedding job.

Content candidate in response.

Citation metadata for generated content.

Citation source information.

A list of floats representing an embedding.

Response from counting tokens.

Complete async batch embedding job status and results.

Output of an async batch embedding job.

Statistics about an async embedding batch job.

Response structure for embedding content requests.

Response from content generation.

Grounding attribution information.

Grounding attribution source ID.

Response for a single request within an async batch.

Container for all responses in an inline batch.

Response structure for listing models.

Token counting information for a single modality.

Model information response structure.

Prompt feedback information.

Safety rating for content.

Semantic retriever chunk information.

Traffic type for API requests (billing classification).

Usage metadata for API calls.

Safety settings for content generation.

JSON Schema type for defining function parameters in Gemini tool calling.

Speech generation configuration.

Pure data transformation utilities to serialize ALTAR ADM tool structures into the exact JSON maps expected by the Gemini API.

Configuration options for file upload.

Voice configuration for speech synthesis.

Utilities for normalizing Google Cloud resource names for Gemini/Vertex AI.

Validation for thinking configuration parameters based on model capabilities.