Package dev.langchain4j.model.chat
Class DisabledStreamingChatLanguageModel
-
- All Implemented Interfaces:
-
dev.langchain4j.model.chat.StreamingChatLanguageModel
public class DisabledStreamingChatLanguageModel implements StreamingChatLanguageModel
A StreamingChatLanguageModel 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 DisabledStreamingChatLanguageModel()
-
Method Summary
Modifier and Type Method Description void
doChat(ChatRequest chatRequest, StreamingChatResponseHandler handler)
-
Methods inherited from class dev.langchain4j.model.chat.StreamingChatLanguageModel
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
void doChat(ChatRequest chatRequest, StreamingChatResponseHandler handler)
-
-
-
-