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 Type
    Method
    Description
    dev.langchain4j.model.chat.ChatLanguageModel
    Builds the ChatLanguageModel using the provided LangchainModelOptions
    void
    sets the options for creating ChatLanguageModel
  • Method Details

    • setOptions

      void setOptions(LangchainModelOptions modelOptions)
      sets the options for creating ChatLanguageModel
      Parameters:
      modelOptions -
    • build

      dev.langchain4j.model.chat.ChatLanguageModel build()
      Builds the ChatLanguageModel using the provided LangchainModelOptions
      Returns:
      a ChatLanguageModel instance.