Class DisabledLanguageModel

java.lang.Object
dev.langchain4j.model.language.DisabledLanguageModel
All Implemented Interfaces:
LanguageModel

public class DisabledLanguageModel extends Object implements LanguageModel
A LanguageModel which throws a ModelDisabledException for all of its methods

This could be used in tests, or in libraries that extend this one to conditionally enable or disable functionality.

  • Constructor Details

    • DisabledLanguageModel

      public DisabledLanguageModel()
  • Method Details