Uses of Interface
dev.langchain4j.model.chat.response.StreamingChatResponseHandler
Packages that use StreamingChatResponseHandler
-
Uses of StreamingChatResponseHandler in dev.langchain4j.model
Methods in dev.langchain4j.model that return StreamingChatResponseHandlerModifier and TypeMethodDescriptionstatic StreamingChatResponseHandler
LambdaStreamingResponseHandler.onPartialResponse
(Consumer<String> onPartialResponse) static StreamingChatResponseHandler
LambdaStreamingResponseHandler.onPartialResponseAndError
(Consumer<String> onPartialResponseLambda, Consumer<Throwable> onErrorLambda) -
Uses of StreamingChatResponseHandler in dev.langchain4j.model.chat
Methods in dev.langchain4j.model.chat with parameters of type StreamingChatResponseHandlerModifier and TypeMethodDescriptiondefault void
StreamingChatModel.chat
(ChatRequest chatRequest, StreamingChatResponseHandler handler) This is the main API to interact with the chat model.default void
StreamingChatModel.chat
(String userMessage, StreamingChatResponseHandler handler) default void
StreamingChatModel.chat
(List<ChatMessage> messages, StreamingChatResponseHandler handler) void
DisabledStreamingChatModel.doChat
(ChatRequest chatRequest, StreamingChatResponseHandler handler) default void
StreamingChatModel.doChat
(ChatRequest chatRequest, StreamingChatResponseHandler handler)