Uses of Interface
dev.langchain4j.model.chat.response.StreamingChatResponseHandler
Packages that use StreamingChatResponseHandler
-
Uses of StreamingChatResponseHandler in dev.langchain4j.internal
Methods in dev.langchain4j.internal with parameters of type StreamingChatResponseHandlerModifier and TypeMethodDescriptionstatic void
InternalStreamingChatResponseHandlerUtils.onCompleteResponse
(StreamingChatResponseHandler handler, ChatResponse completeResponse) static void
InternalStreamingChatResponseHandlerUtils.onCompleteToolCall
(StreamingChatResponseHandler handler, CompleteToolCall completeToolCall) static void
InternalStreamingChatResponseHandlerUtils.onPartialResponse
(StreamingChatResponseHandler handler, String partialResponse) static void
InternalStreamingChatResponseHandlerUtils.onPartialThinking
(StreamingChatResponseHandler handler, String partialThinking) static void
InternalStreamingChatResponseHandlerUtils.onPartialToolCall
(StreamingChatResponseHandler handler, PartialToolCall partialToolCall) -
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)