Class OpenAiLangchain4jLanguageModel
java.lang.Object
io.micronaut.projectgen.micronaut.features.langchain4j.languagemodels.OpenAiLangchain4jLanguageModel
- 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.openai.enabled",
value="true",
defaultValue="true")
@Singleton
public class OpenAiLangchain4jLanguageModel
extends Object
implements Langchain4jLanguageModel, OpenRewriteFeature
Feature that provides integration with OpenAI's Langchain4j language model in Micronaut.
Adds the necessary configuration and recipes for OpenAI 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.naming.Described
getDescriptionMethods inherited from interface io.micronaut.projectgen.core.feature.Feature
getOrder, isCommunity, isPreview, isVisible, processSelectedFeatures, supportsMethods inherited from interface io.micronaut.projectgen.micronaut.features.langchain4j.Langchain4jLanguageModel
getCategory, getDescriptionMethods inherited from interface io.micronaut.projectgen.core.openrewrite.OpenRewriteFeature
apply, getFrameworkDocumentation, getThirdPartyDocumentation, processRecipes
-
Constructor Details
-
OpenAiLangchain4jLanguageModel
public OpenAiLangchain4jLanguageModel()
-
-
Method Details
-
getTitle
-
getName
Description copied from interface:FeatureThe name of the feature. It must be unique. -
getRecipes
- Specified by:
getRecipesin interfaceOpenRewriteFeature
-