yera.providers.gemini_common

Common infrastructure for accessing Gemini services.

Symbols

def get_gemini_client — Build a Gemini client from a configured connection.

get_gemini_client

get_gemini_client(
    connection: GeminiConnection,
) → genai.Client

Build a Gemini client from a configured connection.

Parameters

connection
type: GeminiConnection

Gemini connection containing the API-key location.

Returns

type: genai.Client

A client configured for the Gemini Developer API.

Raises

ValueError

If the configured environment variable is empty or absent.