Class DisabledStreamingChatLanguageModel

java.lang.Object
dev.langchain4j.model.chat.DisabledStreamingChatLanguageModel
All Implemented Interfaces:
StreamingChatLanguageModel

public class DisabledStreamingChatLanguageModel extends Object 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 Details

    • DisabledStreamingChatLanguageModel

      public DisabledStreamingChatLanguageModel()
  • Method Details