Package dev.langchain4j.model.language
Interface LanguageModel
- All Known Implementing Classes:
DisabledLanguageModel
public interface LanguageModel
Represents a language model that has a simple text interface (as opposed to a chat interface).
It is recommended to use the
ChatLanguageModel
instead,
as it offers more features.-
Method Summary
-
Method Details
-
generate
Generate a response to the given prompt.- Parameters:
prompt
- the prompt.- Returns:
- the response.
-
generate
Generate a response to the given prompt.- Parameters:
prompt
- the prompt.- Returns:
- the response.
-