Package dev.langchain4j.model.language
See: Description
-
Class Summary Class Description DisabledStreamingLanguageModel A StreamingLanguageModel 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. DisabledLanguageModel A LanguageModel 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. -
Interface Summary Interface Description StreamingLanguageModel Represents a language model that has a simple text interface (as opposed to a chat interface) and can stream a response one token at a time. LanguageModel Represents a language model that has a simple text interface (as opposed to a chat interface). TokenCountEstimator Represents an interface for estimating the count of tokens in various text types such as a text, prompt, text segment, etc.