gemini

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package gemini implements the model.LLM interface for Gemini models.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewModel

func NewModel(ctx context.Context, modelName string, cfg *genai.ClientConfig) (model.LLM, error)

NewModel returns model.LLM, backed by the Gemini API.

It uses the provided context and configuration to initialize the underlying genai.Client. The modelName specifies which Gemini model to target (e.g., "gemini-2.5-flash").

An error is returned if the genai.Client fails to initialize.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL