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 voidInternalStreamingChatResponseHandlerUtils.onCompleteResponse(StreamingChatResponseHandler handler, ChatResponse completeResponse) static voidInternalStreamingChatResponseHandlerUtils.onCompleteToolCall(StreamingChatResponseHandler handler, CompleteToolCall completeToolCall) static voidInternalStreamingChatResponseHandlerUtils.onPartialResponse(StreamingChatResponseHandler handler, String partialResponse) static voidInternalStreamingChatResponseHandlerUtils.onPartialThinking(StreamingChatResponseHandler handler, String partialThinking) static voidInternalStreamingChatResponseHandlerUtils.onPartialToolCall(StreamingChatResponseHandler handler, PartialToolCall partialToolCall) -
Uses of StreamingChatResponseHandler in dev.langchain4j.model
Methods in dev.langchain4j.model that return StreamingChatResponseHandlerModifier and TypeMethodDescriptionstatic StreamingChatResponseHandlerLambdaStreamingResponseHandler.onPartialResponse(Consumer<String> onPartialResponse) static StreamingChatResponseHandlerLambdaStreamingResponseHandler.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 voidStreamingChatModel.chat(ChatRequest chatRequest, StreamingChatResponseHandler handler) This is the main API to interact with the chat model.default voidStreamingChatModel.chat(String userMessage, StreamingChatResponseHandler handler) default voidStreamingChatModel.chat(List<ChatMessage> messages, StreamingChatResponseHandler handler) voidDisabledStreamingChatModel.doChat(ChatRequest chatRequest, StreamingChatResponseHandler handler) default voidStreamingChatModel.doChat(ChatRequest chatRequest, StreamingChatResponseHandler handler)