Package dev.langchain4j.model.chat
Class DisabledChatLanguageModel
-
- All Implemented Interfaces:
-
dev.langchain4j.model.chat.ChatLanguageModel
public class DisabledChatLanguageModel implements 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 Constructor Description DisabledChatLanguageModel()
-
Method Summary
Modifier and Type Method Description ChatResponse
doChat(ChatRequest chatRequest)
-
Methods inherited from class dev.langchain4j.model.chat.ChatLanguageModel
chat, chat, chat, chat, defaultRequestParameters, listeners, provider, supportedCapabilities
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
doChat
ChatResponse doChat(ChatRequest chatRequest)
-
-
-
-