Class GoogleAiGeminiModelCatalog
java.lang.Object
dev.langchain4j.model.googleai.GoogleAiGeminiModelCatalog
- All Implemented Interfaces:
ModelCatalog
Google AI Gemini implementation of
ModelCatalog.
Uses the Gemini Models API to dynamically discover available models.
Example:
GoogleAiGeminiModelCatalog catalog = GoogleAiGeminiModelCatalog.builder()
.apiKey(System.getenv("GOOGLE_AI_GEMINI_API_KEY"))
.build();
List<ModelDescription> models = catalog.listModels();
-
Method Details
-
builder
-
listModels
Description copied from interface:ModelCatalogRetrieves a list of available models from the provider.- Specified by:
listModelsin interfaceModelCatalog- Returns:
- A list of model descriptions
-
provider
Description copied from interface:ModelCatalogReturns the provider for this catalog service.- Specified by:
providerin interfaceModelCatalog- Returns:
- The model provider
-