Class AnthropicModelCatalog
java.lang.Object
dev.langchain4j.model.anthropic.AnthropicModelCatalog
- All Implemented Interfaces:
dev.langchain4j.model.catalog.ModelCatalog
public class AnthropicModelCatalog
extends Object
implements dev.langchain4j.model.catalog.ModelCatalog
Anthropic implementation of
ModelCatalog.
Uses the Anthropic Models API to dynamically discover available models.
Example:
AnthropicModelCatalog catalog = AnthropicModelCatalog.builder()
.apiKey(System.getenv("ANTHROPIC_API_KEY"))
.build();
List<ModelDescription> models = catalog.listModels();
-
Method Details
-
builder
-
listModels
- Specified by:
listModelsin interfacedev.langchain4j.model.catalog.ModelCatalog
-
provider
public dev.langchain4j.model.ModelProvider provider()- Specified by:
providerin interfacedev.langchain4j.model.catalog.ModelCatalog
-