Class GoogleGenAiModelCatalog

java.lang.Object
dev.langchain4j.model.google.genai.GoogleGenAiModelCatalog
All Implemented Interfaces:
ModelCatalog

public class GoogleGenAiModelCatalog extends Object implements ModelCatalog
Google GenAI implementation of ModelCatalog.

Uses the Gemini Models API to dynamically discover available models.

Example:

GoogleGenAiModelCatalog catalog = GoogleGenAiModelCatalog.builder()
    .apiKey(System.getenv("GOOGLE_AI_GEMINI_API_KEY"))
    .build();

List<ModelDescription> models = catalog.listModels();