Package dev.langchain4j.internal
Class InternalStreamingChatResponseHandlerUtils
java.lang.Object
dev.langchain4j.internal.InternalStreamingChatResponseHandlerUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
onCompleteResponse
(StreamingChatResponseHandler handler, ChatResponse completeResponse) static void
onCompleteToolCall
(StreamingChatResponseHandler handler, CompleteToolCall completeToolCall) static void
onPartialResponse
(StreamingChatResponseHandler handler, String partialResponse) static void
onPartialThinking
(StreamingChatResponseHandler handler, String partialThinking) static void
onPartialToolCall
(StreamingChatResponseHandler handler, PartialToolCall partialToolCall) static void
withLoggingExceptions
(Runnable runnable)
-
Constructor Details
-
InternalStreamingChatResponseHandlerUtils
public InternalStreamingChatResponseHandlerUtils()
-
-
Method Details
-
withLoggingExceptions
-
onPartialResponse
-
onPartialThinking
-
onPartialToolCall
public static void onPartialToolCall(StreamingChatResponseHandler handler, PartialToolCall partialToolCall) -
onCompleteToolCall
public static void onCompleteToolCall(StreamingChatResponseHandler handler, CompleteToolCall completeToolCall) -
onCompleteResponse
public static void onCompleteResponse(StreamingChatResponseHandler handler, ChatResponse completeResponse)
-