Class JlamaStreamingLanguageModel
java.lang.Object
dev.langchain4j.model.jlama.JlamaStreamingLanguageModel
- All Implemented Interfaces:
StreamingLanguageModel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()voidgenerate(String prompt, StreamingResponseHandler<String> handler) Generates a response from the model based on a prompt.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface StreamingLanguageModel
generate
-
Constructor Details
-
JlamaStreamingLanguageModel
-
-
Method Details
-
builder
-
generate
Description copied from interface:StreamingLanguageModelGenerates a response from the model based on a prompt.- Specified by:
generatein interfaceStreamingLanguageModel- Parameters:
prompt- The prompt.handler- The handler for streaming the response.
-