Class DisabledStreamingChatModel
java.lang.Object
dev.langchain4j.model.chat.DisabledStreamingChatModel
- All Implemented Interfaces:
StreamingChatModel
A
StreamingChatModel 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
Modifier and TypeMethodDescriptionvoiddoChat(ChatRequest chatRequest, StreamingChatResponseHandler handler) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface StreamingChatModel
chat, chat, chat, defaultRequestParameters, listeners, provider, supportedCapabilities
-
Constructor Details
-
DisabledStreamingChatModel
public DisabledStreamingChatModel()
-
-
Method Details
-
doChat
- Specified by:
doChatin interfaceStreamingChatModel
-