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) Deprecated, for removal: This API element is subject to removal in a future version.static voidInternalStreamingChatResponseHandlerUtils.onPartialResponse(StreamingChatResponseHandler handler, String partialResponse, StreamingHandle streamingHandle) static voidInternalStreamingChatResponseHandlerUtils.onPartialThinking(StreamingChatResponseHandler handler, String partialThinking) Deprecated, for removal: This API element is subject to removal in a future version.static voidInternalStreamingChatResponseHandlerUtils.onPartialThinking(StreamingChatResponseHandler handler, String partialThinking, StreamingHandle streamingHandle) static voidInternalStreamingChatResponseHandlerUtils.onPartialToolCall(StreamingChatResponseHandler handler, PartialToolCall partialToolCall) Deprecated, for removal: This API element is subject to removal in a future version.static voidInternalStreamingChatResponseHandlerUtils.onPartialToolCall(StreamingChatResponseHandler handler, PartialToolCall partialToolCall, StreamingHandle streamingHandle) -
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)
InternalStreamingChatResponseHandlerUtils.onPartialResponse(StreamingChatResponseHandler, String, StreamingHandle)instead.