Package dev.langchain4j.model.language
See: Description
-
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. TokenCountEstimator Represents an interface for estimating the count of tokens in various text types such as a text, prompt, text segment, etc. LanguageModel Represents a language model that has a simple text interface (as opposed to a chat interface). -
Class Summary Class Description 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. 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.