Package dev.langchain4j.model.dashscope
Class QwenStreamingLanguageModel
java.lang.Object
dev.langchain4j.model.dashscope.QwenStreamingLanguageModel
- All Implemented Interfaces:
StreamingLanguageModel
Represents a Qwen language model with a text interface.
The model's response is streamed token by token and should be handled with
More details are available here.
StreamingResponseHandler
.
More details are available here.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
void
generate
(String prompt, StreamingResponseHandler<String> handler) Generates a response from the model based on a prompt.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.langchain4j.model.language.StreamingLanguageModel
generate
-
Constructor Details
-
QwenStreamingLanguageModel
-
-
Method Details
-
generate
Description copied from interface:StreamingLanguageModel
Generates a response from the model based on a prompt.- Specified by:
generate
in interfaceStreamingLanguageModel
- Parameters:
prompt
- The prompt.handler
- The handler for streaming the response.
-
builder
-