Class HuggingFaceLangchain4jLanguageModel
java.lang.Object
io.micronaut.projectgen.micronaut.features.langchain4j.languagemodels.HuggingFaceLangchain4jLanguageModel
- All Implemented Interfaces:
io.micronaut.core.naming.Described, io.micronaut.core.naming.Named, io.micronaut.core.order.Ordered, Feature, OpenRewriteFeature, Langchain4jFeature, Langchain4jLanguageModel
@Requires(property="micronaut.starter.feature.langchain4j.hugging.face.enabled",
value="true",
defaultValue="true")
@Singleton
public class HuggingFaceLangchain4jLanguageModel
extends Object
implements Langchain4jLanguageModel, OpenRewriteFeature
Feature that provides integration with Hugging Face's Langchain4j language model in Micronaut.
Adds the necessary configuration and recipes for Hugging Face language model support.
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()The name of the feature.getRecipes(GeneratorContext generatorContext) getTitle()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.naming.Described
getDescriptionMethods inherited from interface Feature
getOrder, isCommunity, isPreview, isVisible, processSelectedFeatures, supportsMethods inherited from interface Langchain4jLanguageModel
getCategory, getDescriptionMethods inherited from interface OpenRewriteFeature
apply, getFrameworkDocumentation, getThirdPartyDocumentation, processRecipes
-
Constructor Details
-
HuggingFaceLangchain4jLanguageModel
public HuggingFaceLangchain4jLanguageModel()
-
-
Method Details
-
getTitle
-
getName
-
getRecipes
- Specified by:
getRecipesin interfaceOpenRewriteFeature
-