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 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)