Package dev.langchain4j.model.chat
Class DisabledChatLanguageModel
java.lang.Object
dev.langchain4j.model.chat.DisabledChatLanguageModel
- All Implemented Interfaces:
ChatLanguageModel
A
ChatLanguageModel 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 Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.langchain4j.model.chat.ChatLanguageModel
chat, chat, chat, chat, defaultRequestParameters, listeners, provider, supportedCapabilities
-
Constructor Details
-
DisabledChatLanguageModel
public DisabledChatLanguageModel()
-
-
Method Details
-
doChat
- Specified by:
doChatin interfaceChatLanguageModel
-