Package com.langchainbeam.model
Interface LangchainModelBuilder
- All Known Implementing Classes:
AnthropicModelBuilder
,OpenAiModelBuilder
public interface LangchainModelBuilder
Interface for creating
ChatLanguageModel
using
compatible LangchainModelOptions
of the model provider-
Method Summary
Modifier and TypeMethodDescriptiondev.langchain4j.model.chat.ChatLanguageModel
build()
Builds theChatLanguageModel
using the providedLangchainModelOptions
void
setOptions
(LangchainModelOptions modelOptions) sets the options for creatingChatLanguageModel
-
Method Details
-
setOptions
sets the options for creatingChatLanguageModel
- Parameters:
modelOptions
-
-
build
dev.langchain4j.model.chat.ChatLanguageModel build()Builds theChatLanguageModel
using the providedLangchainModelOptions
- Returns:
- a
ChatLanguageModel
instance.
-